mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-04 04:31:44 +00:00
fixed exception management in python mules and improved uwsgidecorators
This commit is contained in:
@@ -208,7 +208,12 @@ PyObject *python_call(PyObject *callable, PyObject *args, int catch, struct wsgi
|
||||
//uwsgi_log("called\n");
|
||||
|
||||
if (PyErr_Occurred()) {
|
||||
uwsgi_manage_exception(wsgi_req, catch);
|
||||
if (wsgi_req) {
|
||||
uwsgi_manage_exception(wsgi_req, catch);
|
||||
}
|
||||
else {
|
||||
PyErr_Print();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef UWSGI_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user