diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-02-27 04:57:47 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-02-27 04:57:47 +0000 |
commit | 4890f929915b27e94cce04d19ab4e72cfbe93715 (patch) | |
tree | 93f48861ce0c1b46acd3e8f13a277785f13e77dd /externals/grill/py/source/pyext.cpp | |
parent | 3e90874e5d63137c195c3b3c1ce90b542deb8a51 (diff) |
better error reporting
use lock count instead of message queuing to avoid py->py messaging deadlock
must clear Python error...
svn path=/trunk/; revision=2585
Diffstat (limited to 'externals/grill/py/source/pyext.cpp')
-rw-r--r-- | externals/grill/py/source/pyext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/externals/grill/py/source/pyext.cpp b/externals/grill/py/source/pyext.cpp index 5a870d10..72ae41fd 100644 --- a/externals/grill/py/source/pyext.cpp +++ b/externals/grill/py/source/pyext.cpp @@ -239,6 +239,8 @@ void pyext::DoExit() Py_DECREF(args); Py_DECREF(objdel); } + else + PyErr_Clear(); gcrun = pyobj->ob_refcnt > 1; Py_DECREF(pyobj); // opposite of SetClssMeth |