Walter Dörwald added the comment:

The problem seems to be in that line:

   except imaplib.IMAP4_SSL.abort, imaplib.IMAP4.abort:

This does *not* catch both exception classes, but catches only IMAP4_SSL.abort 
and stores the exception object in imaplib.IMAP4.abort.

What you want is:

   except (imaplib.IMAP4_SSL.abort, imaplib.IMAP4.abort):

----------
nosy: +doerwalter

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21968>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to