Skip to content

Commit

Permalink
FIX: change tarfile exception for back compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rmatsuda committed Feb 14, 2025
1 parent 8b96626 commit d987931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invesalius/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def Extract(filename: Union[str, bytes, os.PathLike], folder: Union[str, bytes,
tar.extract(t, path=folder, filter=tar_filter)
fname = os.path.join(folder, decode(t.name, "utf-8"))
filelist.append(fname)
except (TypeError, AttributeError, tarfile.OutsideDestinationError):
except (TypeError, AttributeError, tarfile.TarError):
filtered = custom_tar_filter(t, folder)
if filtered is not None:
tar.extract(filtered, path=folder)
Expand Down

0 comments on commit d987931

Please sign in to comment.