]> git.webhop.me Git - lcd4linux.git/commitdiff
plugin_python.c: print Python tracebacks on stderr (yay!)
authormzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Tue, 19 Jan 2010 14:15:53 +0000 (14:15 +0000)
committermzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Tue, 19 Jan 2010 14:15:53 +0000 (14:15 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1085 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

plugin_python.c

index 8515c5bd59805011eb965f7d046eb8daa643e209..e3005e2bc5f142af4aeb300f2c0be0f2e87592b5 100644 (file)
@@ -93,6 +93,8 @@ static void pyt_exec_str(RESULT * result, const char *module, const char *functi
            } else {
                Py_DECREF(pModule);
                error("Python call failed (\"%s.%s\")", module, function);
+               /* print traceback on stderr */
+               PyErr_PrintEx(0);
                SetResult(&result, R_STRING, "");
                return;
            }