python error message
This commit is contained in:
parent
a97723c5c2
commit
e0a4fcda2d
|
|
@ -583,6 +583,9 @@ handle_pyobj_command(TiXmlElement *xcommand, bool needs_response,
|
|||
if (result != NULL) {
|
||||
xresponse->LinkEndChild(pyobj_to_xml(result));
|
||||
Py_DECREF(result);
|
||||
} else {
|
||||
// Print the Python error message if there was one.
|
||||
PyErr_Print();
|
||||
}
|
||||
|
||||
Py_DECREF(obj);
|
||||
|
|
|
|||
Loading…
Reference in New Issue