summaryrefslogtreecommitdiff
path: root/postgresqleu/mailqueue/admin.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-04 11:47:26 +0000
committerMagnus Hagander2019-01-04 11:47:26 +0000
commita3dc28194300348583b9470ba1dcccda5fad1ec2 (patch)
tree6b8ba6207a76693e7b481e36023241a8e5e68939 /postgresqleu/mailqueue/admin.py
parent14f9ed374ccf15a02ec9a1bd1eca15b9bbeafff6 (diff)
Switch to new style try/except handling
Python 2.6 introduced the better syntax, Python 3 removes the old one, so one small step towards py3.
Diffstat (limited to 'postgresqleu/mailqueue/admin.py')
-rw-r--r--postgresqleu/mailqueue/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/mailqueue/admin.py b/postgresqleu/mailqueue/admin.py
index b99a3b63..46a6aa1f 100644
--- a/postgresqleu/mailqueue/admin.py
+++ b/postgresqleu/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'