1 |
commit: 30cbbe17a8f849e3fb41dc9a85756581c6395c6f |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 10 11:50:06 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 11:50:06 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=30cbbe17 |
7 |
|
8 |
grs/Interpret.py: fix minor errors in semantic_action(). |
9 |
|
10 |
grs/Interpret.py | 5 +++-- |
11 |
1 file changed, 3 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/grs/Interpret.py b/grs/Interpret.py |
14 |
index 2bf880c..a42400d 100644 |
15 |
--- a/grs/Interpret.py |
16 |
+++ b/grs/Interpret.py |
17 |
@@ -94,8 +94,9 @@ class Interpret(Daemon): |
18 |
_lo.log(_line) |
19 |
return |
20 |
try: |
21 |
- f(*args) |
22 |
- except Exception as err: |
23 |
+ func(*args) |
24 |
+ except Exception as excpt: |
25 |
+ err = excpt |
26 |
pass |
27 |
else: |
28 |
err = 'Number of parameters incorrect.' |