plugin_python.c: print Python tracebacks on stderr (yay!)

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1085 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
mzuther
2010-01-19 14:15:53 +00:00
parent ef55b42807
commit 2e2e535b2c

View 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;
}