1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-10 06:48:19 +02:00

fixing a CI error

This commit is contained in:
Alex Lovell-Troy 2014-05-27 14:39:47 -06:00
parent c408c7c8a4
commit ba773abaeb

View file

@ -22,7 +22,7 @@ class GmailTransport(EmailTransport):
# Try to use oauth2 first. It's much safer
try:
self._connect_oauth(username)
except (TypeError, ValueError), e:
except (TypeError, ValueError) as e:
print " Couldn't do oauth2", e
self.server = self.transport(self.hostname, self.port)
typ, msg = self.server.login(username, password)