summaryrefslogtreecommitdiff
path: root/src/python.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/python.cc')
-rw-r--r--src/python.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python.cc b/src/python.cc
index 445a9882..258c4114 100644
--- a/src/python.cc
+++ b/src/python.cc
@@ -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();
}