Update remaining exception syntaxes

This commit is contained in:
Roberto Rosario
2014-07-20 22:44:12 -04:00
parent e9717d9bdd
commit 7321b12c7d
14 changed files with 63 additions and 70 deletions

View File

@@ -78,9 +78,9 @@ def return_attrib(obj, attrib, arguments=None):
return result()
else:
return result
except Exception, err:
except Exception as exception:
if settings.DEBUG:
return 'Attribute error: %s; %s' % (attrib, err)
return 'Attribute error: %s; %s' % (attrib, exception)
else:
pass