diff options
-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; } |