running lib2to3.fixes.fix_except

This commit is contained in:
ilvalle
2016-05-29 08:31:19 +02:00
parent 14830e8906
commit 35900da19b
35 changed files with 93 additions and 92 deletions
+1 -1
View File
@@ -316,7 +316,7 @@ def load(routes='routes.py', app=None, data=None, rdict=None):
symbols = dict(app=app)
try:
exec (data + '\n') in symbols
except SyntaxError, e:
except SyntaxError as e:
logger.error(
'%s has a syntax error and will not be loaded\n' % path
+ traceback.format_exc())