Skip to content

Commit f648fec

Browse files
imaplib: re-raise BaseException instead of bare except
Co-authored-by: Peter Bierma <[email protected]>
1 parent 882bf2c commit f648fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/imaplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ def __enter__(self):
14291429
if __debug__ and imap.debug >= 4:
14301430
prompt = imap.continuation_response
14311431
imap._mesg(f'idle continuation prompt: {prompt}')
1432-
except:
1432+
except BaseException:
14331433
imap._idle_capture = False
14341434
raise
14351435

0 commit comments

Comments
 (0)