check for python errors a little better i think..
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/python.cc
→
src/python.cc
@@ -413,7 +413,7 @@ arglist = Py_BuildValue("(O)", data);
// call the callback result = PyEval_CallObject(func, arglist); - if (!result) { + if (!result || PyErr_Occurred()) { // an exception occured in the script, display it PyErr_Print(); }