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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy