except Ex, e: --> except Ex as e:
Nudge us towards python3 compatability by converting deprecated python2 syntax. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
@ -53,7 +53,7 @@ class UsefulIMAPMixIn(object):
|
||||
del self.untagged_responses[:]
|
||||
try:
|
||||
result = super(UsefulIMAPMixIn, self).select(mailbox, readonly)
|
||||
except self.abort, e:
|
||||
except self.abort as e:
|
||||
# self.abort is raised when we are supposed to retry
|
||||
errstr = "Server '%s' closed connection, error on SELECT '%s'. Ser"\
|
||||
"ver said: %s" % (self.host, mailbox, e.args[0])
|
||||
|
Reference in New Issue
Block a user