Skip to content

Commit

Permalink
Merge pull request #67 from frenzymadness/py3-exception-bug
Browse files Browse the repository at this point in the history
Fixed Py3 compatibility for Postmark transport.
  • Loading branch information
amcgregor authored Sep 9, 2016
2 parents a0469f8 + e0b0995 commit 5efd89d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marrow/mailer/transport/postmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5efd89d

Please sign in to comment.