Skip to content

Commit d780b04

Browse files
committed
Update deps
1 parent 39e77bc commit d780b04

File tree

3 files changed

+127
-109
lines changed

3 files changed

+127
-109
lines changed

msys2_devtools/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def zstdopen(cls, name, mode="r", fileobj=None, **kwargs): # type: ignore
1919
zstfileobj = ZstdFile(fileobj or name, mode)
2020
if "r" in mode:
2121
zstfileobj.peek(1) # raises ZstdError if not a zstd file
22-
except ZstdError as e:
22+
except (ZstdError, EOFError) as e:
2323
if zstfileobj is not None:
2424
zstfileobj.close()
2525
raise tarfile.ReadError("not a zstd file") from e

0 commit comments

Comments
 (0)