From: mzuther Date: Tue, 19 Jan 2010 14:26:33 +0000 (+0000) Subject: plugin_python.c: print tracebacks also for Python scripts that do not "compile" X-Git-Tag: svn1203~117 X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=8b4d88284a82ba14c90577aa4fc968513fa558d0;p=lcd4linux.git plugin_python.c: print tracebacks also for Python scripts that do not "compile" git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1086 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- diff --git a/plugin_python.c b/plugin_python.c index e3005e2..fcd3419 100644 --- a/plugin_python.c +++ b/plugin_python.c @@ -105,6 +105,8 @@ static void pyt_exec_str(RESULT * result, const char *module, const char *functi Py_DECREF(pModule); } else { error("Failed to load python module \"%s\"", module); + /* print traceback on stderr */ + PyErr_PrintEx(0); } SetResult(&result, R_STRING, ""); return;