summaryrefslogtreecommitdiff
path: root/pgweb/mailqueue/admin.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-19 18:34:14 +0000
committerMagnus Hagander2019-01-26 15:19:26 +0000
commit142f0805c2a8aa865f88bffdd6fbe4d76397ad03 (patch)
tree1edce1ec269b40fa6220d3bca603bfa77577d081 /pgweb/mailqueue/admin.py
parentfdca701a766f8b7a20e11655b68d5aae7144a6b3 (diff)
Update to new style exception catching
Diffstat (limited to 'pgweb/mailqueue/admin.py')
-rw-r--r--pgweb/mailqueue/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgweb/mailqueue/admin.py b/pgweb/mailqueue/admin.py
index b99a3b63..46a6aa1f 100644
--- a/pgweb/mailqueue/admin.py
+++ b/pgweb/mailqueue/admin.py
@@ -25,7 +25,7 @@ class QueuedMailAdmin(admin.ModelAdmin):
if b:
return b
return "Could not find body"
- except Exception, e:
+ except Exception as e:
return "Failed to get body: %s" % e
parsed_content.short_description = 'Parsed mail'