summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/chroottar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/chroottar.py b/examples/chroottar.py
index 56613de..ed494b2 100755
--- a/examples/chroottar.py
+++ b/examples/chroottar.py
@@ -38,7 +38,7 @@ class TarFile(tarfile.TarFile):
zfobj = zstandard.open(name, "rb")
try:
tarobj = cls.taropen(name, "r", zfobj)
- except (OSError, EOFError) as exc:
+ except (OSError, EOFError, zstandard.ZstdError) as exc:
zfobj.close()
raise tarfile.ReadError("not a zst file") from exc
except: