[issue21968] 'abort' object is not callable
Apple Grew
report at bugs.python.org
Sat Jul 12 22:58:06 CEST 2014
Apple Grew added the comment:
That is the problem. I don't assign anything to that. I in fact grepped my
code for the word abort but could find none, except in the following code
block.
def retryableCall(f, retries, delay):
while True:
try:
return f()
except imaplib.IMAP4_SSL.abort, imaplib.IMAP4.abort:
if retries > 0:
retries -= 1
try:
mail.shutdown()
except Exception, e:
if verbose:
print 'Error in shutting down mail.', e
print e
time.sleep(delay)
open_connection(non_retryable=True)
else:
raise
except imaplib.IMAP4_SSL.readonly, imaplib.IMAP4.readonly:
if retries > 0:
retries -= 1
time.sleep(delay)
else:
raise
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21968>
_______________________________________
More information about the Python-bugs-list
mailing list