mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user