Skip to content

Commit c470c33

Browse files
committed
Fix _scan_data_descriptor_no_sig_by_decompression when library not available
1 parent 578c7c8 commit c470c33

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
@@ -1740,7 +1740,7 @@ def _scan_data_descriptor_no_sig(self, fp, offset, end_offset, zip64, chunk_size
17401740
def _scan_data_descriptor_no_sig_by_decompression(self, fp, offset, end_offset, zip64, method):
17411741
try:
17421742
decompressor = _get_decompressor(method)
1743-
except NotImplementedError:
1743+
except (NotImplementedError, RuntimeError):
17441744
return False
17451745

17461746
if decompressor is None:

0 commit comments

Comments
 (0)