clear exception on PyObject_CheckReadBuffer error

This commit is contained in:
Unbit
2013-09-30 09:40:40 +02:00
parent 215e0c4cbc
commit 19aa7c2560
+1
View File
@@ -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;
}
}