summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-08 09:22:14 +0000
committerDana Jansens <danakj@orodu.net>2003-01-08 09:22:14 +0000
commitdbf58ef2b61fe46f15a697ad151ee868c2461f6f (patch)
tree3ba470d07f8df76649316085b3433c680b6020db
parent93811226bb5207731da736ab706f150fe915466a (diff)
check for python errors a little better i think..
-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();
}