Skip to content

Commit 3b2f232

Browse files
committed
Remove unneeded catch type
- NotImplementedError is a subclass of RuntimeError.
1 parent 797a62c commit 3b2f232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/zipfile/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ def _scan_data_descriptor_no_sig(self, fp, offset, end_offset, zip64, chunk_size
17411741
def _scan_data_descriptor_no_sig_by_decompression(self, fp, offset, end_offset, zip64, method):
17421742
try:
17431743
decompressor = _get_decompressor(method)
1744-
except (NotImplementedError, RuntimeError):
1744+
except RuntimeError:
17451745
return False
17461746

17471747
if decompressor is None:

0 commit comments

Comments
 (0)