diff --git a/plugins/python/wsgi_subhandler.c b/plugins/python/wsgi_subhandler.c index b2851b49..9167bf3b 100644 --- a/plugins/python/wsgi_subhandler.c +++ b/plugins/python/wsgi_subhandler.c @@ -31,6 +31,7 @@ int uwsgi_python_send_body(struct wsgi_request *wsgi_req, PyObject *chunk) { #else if (PyObject_CheckReadBuffer(chunk)) { if (!PyObject_AsCharBuffer(chunk, (const char **) &content, (Py_ssize_t *) &content_len)) { + PyErr_Clear(); goto found; } }