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
+2 -2
View File
@@ -2453,7 +2453,7 @@ class SQLFORM(FORM):
sfields, keywords))
rows = dbset.select(left=left, orderby=orderby,
cacheable=True, *selectable_columns)
except Exception, e:
except Exception as e:
response.flash = T('Internal Error')
rows = []
else:
@@ -2651,7 +2651,7 @@ class SQLFORM(FORM):
rows = None
next_cursor = None
error = T("Query Not Supported")
except Exception, e:
except Exception as e:
rows = None
next_cursor = None
error = T("Query Not Supported: %s") % e