aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-10-10 07:50:06 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-10-10 07:50:06 -0400
commit30cbbe17a8f849e3fb41dc9a85756581c6395c6f (patch)
tree178278eb52cd768836172775e44444ea7377facb
parentgrs/Interpret.py: fix logging during sync/seed. (diff)
downloadgrss-30cbbe17a8f849e3fb41dc9a85756581c6395c6f.zip
grss-30cbbe17a8f849e3fb41dc9a85756581c6395c6f.tar.gz
grss-30cbbe17a8f849e3fb41dc9a85756581c6395c6f.tar.bz2
grs/Interpret.py: fix minor errors in semantic_action().
-rw-r--r--grs/Interpret.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/grs/Interpret.py b/grs/Interpret.py
index 2bf880c..a42400d 100644
--- a/grs/Interpret.py
+++ b/grs/Interpret.py
@@ -94,8 +94,9 @@ class Interpret(Daemon):
_lo.log(_line)
return
try:
- f(*args)
- except Exception as err:
+ func(*args)
+ except Exception as excpt:
+ err = excpt
pass
else:
err = 'Number of parameters incorrect.'