diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-02-07 18:44:57 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-02-07 18:44:57 (GMT) |
commit | 95ff7239bda51a234e04b1ad81c377fdf702faec (patch) | |
tree | e102c7c16c1c1a053fc85f6b9b97dafc0a95951c /Lib/imaplib.py | |
parent | feb68522fd6e1d6ff3e096fdd1b4e57fd1cc09b0 (diff) | |
download | cpython-95ff7239bda51a234e04b1ad81c377fdf702faec.zip cpython-95ff7239bda51a234e04b1ad81c377fdf702faec.tar.gz cpython-95ff7239bda51a234e04b1ad81c377fdf702faec.tar.bz2 |
#20013: don't raise socket error when selected mailbox deleted.
I'm checking this in without a test because not much of this code
is tested and I don't have time to work up the necessary extensions
to the existing test framework.
The patch itself was tested by the person who reported the bug.
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r-- | Lib/imaplib.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index ade2f9c..ad104fe 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -1063,6 +1063,11 @@ class IMAP4: del self.tagged_commands[tag] return result + # If we've seen a BYE at this point, the socket will be + # closed, so report the BYE now. + + self._check_bye() + # Some have reported "unexpected response" exceptions. # Note that ignoring them here causes loops. # Instead, send me details of the unexpected response and |