Skip to content

Commit 97ca4d3

Browse files
graingertvstinner
andauthored
Update Lib/gzip.py
Co-authored-by: Victor Stinner <[email protected]>
1 parent 2217713 commit 97ca4d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/gzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def __init__(self, filename=None, mode=None,
248248
try:
249249
if self.mode == WRITE:
250250
self._write_gzip_header(compresslevel)
251-
except BaseException:
251+
except:
252252
# Avoid a ResourceWarning if the write fails, eg read-only file or KeyboardInterrupt
253253
self._close()
254254
raise

0 commit comments

Comments
 (0)