]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
imaplib: re-raise BaseException instead of bare except
authorForest <foresto@users.noreply.github.com>
Sun, 22 Sep 2024 21:37:47 +0000 (21:37 +0000)
committerGitHub <noreply@github.com>
Sun, 22 Sep 2024 21:37:47 +0000 (21:37 +0000)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Lib/imaplib.py

index 718c53483e3becd4589060efc740c68c2b7d7d24..3300d34534bcc20e0c35f9678a4956c0fb5ebf05 100644 (file)
@@ -1429,7 +1429,7 @@ class _Idler:
             if __debug__ and imap.debug >= 4:
                 prompt = imap.continuation_response
                 imap._mesg(f'idle continuation prompt: {prompt}')
-        except:
+        except BaseException:
             imap._idle_capture = False
             raise