aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin_python.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin_python.c b/plugin_python.c
index e3005e2..fcd3419 100644
--- a/plugin_python.c
+++ b/plugin_python.c
@@ -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;