Fix exception syntax for Py3
This commit is contained in:
parent
e2ec14bbb9
commit
3fbce4c0f9
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def translate(func):
|
|||
try:
|
||||
compiled = compile(tree, '<string>', 'exec')
|
||||
return eval(compiled)
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
logger.debug(ast.dump(tree))
|
||||
from ArminRonacher import codegen # uses Armin Ronacher's codegen to debug
|
||||
# http://dev.pocoo.org/hg/sandbox/file/852a1248c8eb/ast/codegen.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue