projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9381122
)
check for python errors a little better i think..
author
Dana Jansens
<danakj@orodu.net>
Wed, 8 Jan 2003 09:22:14 +0000
(09:22 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 8 Jan 2003 09:22:14 +0000
(09:22 +0000)
src/python.cc
patch
|
blob
|
history
diff --git
a/src/python.cc
b/src/python.cc
index 445a9882bcf3ac4b2925e54154dc506789915001..258c4114b7f87456da34b4f13d417220df1648db 100644
(file)
--- 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();
}