check for python errors a little better i think..
This commit is contained in:
parent
93811226bb
commit
dbf58ef2b6
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ void python_callback(PyObject *func, PyObject *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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue