diff options
| author | mzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2010-01-19 14:15:53 +0000 |
|---|---|---|
| committer | mzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2010-01-19 14:15:53 +0000 |
| commit | 2e2e535b2c13d1fb5cf959039c81a948686a46bc (patch) | |
| tree | aaae5cbcc893d4df525e747ab80e5b1825563fba | |
| parent | ef55b42807bb96efdf7140be678affce09545245 (diff) | |
| download | lcd4linux-2e2e535b2c13d1fb5cf959039c81a948686a46bc.tar.gz | |
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
| -rw-r--r-- | plugin_python.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin_python.c b/plugin_python.c index 8515c5b..e3005e2 100644 --- a/plugin_python.c +++ b/plugin_python.c @@ -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; } |
