fixed threadstate swap

This commit is contained in:
roberto@debian32
2011-06-25 07:44:21 +02:00
parent 55c3ba73d3
commit 576a1e7cb2
3 changed files with 9 additions and 4 deletions
+4
View File
@@ -12,8 +12,12 @@ PyObject *python_call(PyObject *callable, PyObject *args, int catch) {
PyObject *pyret;
uwsgi_log("ready to call %p %p\n", callable, args);
pyret = PyEval_CallObject(callable, args);
uwsgi_log("called\n");
if (PyErr_Occurred()) {
if (PyErr_ExceptionMatches(PyExc_MemoryError)) {
uwsgi_log("Memory Error detected !!!\n");