From 8b4d88284a82ba14c90577aa4fc968513fa558d0 Mon Sep 17 00:00:00 2001 From: mzuther Date: Tue, 19 Jan 2010 14:26:33 +0000 Subject: 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 --- plugin_python.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3 e='master' selected='selected'>master lcd4linuxJonathan McCrohan
aboutsummaryrefslogtreecommitdiffstats
path: root/system.h
blob: ad6acc67360286e34a1cfeda92037ff6ef09e7e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81