From: Forest Date: Sun, 22 Sep 2024 21:37:47 +0000 (+0000) Subject: imaplib: re-raise BaseException instead of bare except X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f648fec1608d18bba9a140929864ea37c34837f4;p=thirdparty%2FPython%2Fcpython.git imaplib: re-raise BaseException instead of bare except Co-authored-by: Peter Bierma --- 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