]> Dogcows Code - chaz/openbox/commitdiff
check for python errors a little better i think..
authorDana Jansens <danakj@orodu.net>
Wed, 8 Jan 2003 09:22:14 +0000 (09:22 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 8 Jan 2003 09:22:14 +0000 (09:22 +0000)
src/python.cc

index 445a9882bcf3ac4b2925e54154dc506789915001..258c4114b7f87456da34b4f13d417220df1648db 100644 (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();
   }
This page took 0.027634 seconds and 4 git commands to generate.