running lib2to3.fixes.fix_except

This commit is contained in:
ilvalle committed 2016-05-29 08:31:19 +02:00
1 parent 14830e8906
commit 35900da19b
35 files changed
+93 -92

No files matched your search

+3 -3
View File
@@ -14,11 +14,11 @@ def wrapper(f):
try:
output = f(data)
return XML(ouput)
except (TypeError, ValueError), e:
except (TypeError, ValueError) as e:
raise HTTP(405, '%s serialization error' % e)
except ImportError, e:
except ImportError as e:
raise HTTP(405, '%s not available' % e)
except Exception, e:
except Exception as e:
raise HTTP(405, '%s error' % e)
return g