From e0a4fcda2da3b21a53b9c922fbaf06f3056a8d15 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 7 Aug 2009 18:14:20 +0000 Subject: [PATCH] python error message --- direct/src/plugin/p3dPythonRun.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/plugin/p3dPythonRun.cxx b/direct/src/plugin/p3dPythonRun.cxx index 46fa90c2a0..a615518423 100755 --- a/direct/src/plugin/p3dPythonRun.cxx +++ b/direct/src/plugin/p3dPythonRun.cxx @@ -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);