bpo-36348: IMAP4.logout() doesn't ignore exc by vstinner · Pull Request #12411 · python/cpython
The imap.IMAP4.logout() method no longer ignores silently arbitrary exceptions. Changes: * The IMAP4.logout() method now expects a "BYE" untagged response, rather than relying on _check_bye() which raises a self.abort() exception. * IMAP4.__exit__() now does nothing if the client already logged out. * Add more debug info if test_logout() tests fail.
vstinner
changed the title
bpo-36348: IMAP4.logout() don't ignore bugs
bpo-36348: IMAP4.logout() doesn't ignore exc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters