fixed exception management in python mules and improved uwsgidecorators

This commit is contained in:
Unbit
2013-02-19 07:11:45 +01:00
parent 5089123e5a
commit 12bf2cd3af
4 changed files with 22 additions and 5 deletions
+6 -1
View File
@@ -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