From: Dana Jansens Date: Wed, 8 Jan 2003 09:22:14 +0000 (+0000) Subject: check for python errors a little better i think.. X-Git-Tag: openbox-2_3_0~499 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=dbf58ef2b61fe46f15a697ad151ee868c2461f6f;p=dana%2Fopenbox.git check for python errors a little better i think.. --- 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(); }