From f648fec1608d18bba9a140929864ea37c34837f4 Mon Sep 17 00:00:00 2001 From: Forest Date: Sun, 22 Sep 2024 21:37:47 +0000 Subject: [PATCH] imaplib: re-raise BaseException instead of bare except Co-authored-by: Peter Bierma --- Lib/imaplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 718c53483e3b..3300d34534bc 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -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 -- 2.47.3