From e0b09955140f34b1828e8e7c26c648cb227c35e7 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Wed, 20 Jul 2016 13:12:06 +0200 Subject: [PATCH] Fixed Py3 compatibility --- marrow/mailer/transport/postmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marrow/mailer/transport/postmark.py b/marrow/mailer/transport/postmark.py index 4e0e75c..0b7733b 100644 --- a/marrow/mailer/transport/postmark.py +++ b/marrow/mailer/transport/postmark.py @@ -65,7 +65,7 @@ def _batchsend(self): try: response = urllib2.urlopen(request) - except (urllib2.HTTPError, urllib2.URLError), e: + except (urllib2.HTTPError, urllib2.URLError) as e: raise DeliveryFailedException(e, "Could not connect to Postmark.") else: respcode = response.getcode()