check for python errors a little better i think..

This commit is contained in:
Dana Jansens 2003-01-08 09:22:14 +00:00
parent 93811226bb
commit dbf58ef2b6

View file

@ -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();
}