Skip to content

Commit dd5411f

Browse files
committed
Correct error
1 parent c5fb2ce commit dd5411f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/isal/igzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def compress(data, compresslevel=_COMPRESS_LEVEL_BEST, *, mtime=None):
249249

250250
def _gzip_header_end(data: bytes) -> int:
251251
if len(data) < 10:
252-
raise ValueError("Gzip header should be 10 bytes or more")
252+
raise BadGzipFile("Gzip header should be 10 bytes or more")
253253
# We are not interested in mtime, xfl and os flags.
254254
magic, method, flags = struct.unpack("<HBB", data[:4])
255255
if magic != 0x8b1f:

0 commit comments

Comments
 (0)