Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59665d0

Browse files
authored
Improve zip64 limit error message (#95892)
1 parent c314198 commit 59665d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/zipfile/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1202,10 +1202,10 @@ def close(self):
12021202
if not self._zip64:
12031203
if self._file_size > ZIP64_LIMIT:
12041204
raise RuntimeError(
1205-
'File size unexpectedly exceeded ZIP64 limit')
1205+
'File size too large, try using force_zip64')
12061206
if self._compress_size > ZIP64_LIMIT:
12071207
raise RuntimeError(
1208-
'Compressed size unexpectedly exceeded ZIP64 limit')
1208+
'Compressed size too large, try using force_zip64')
12091209
# Seek backwards and write file header (which will now include
12101210
# correct CRC and file sizes)
12111211

0 commit comments

Comments
 (0)