Skip to content

Commit e432609

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4431852 commit e432609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/apps/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def safe_extract_member(member, extract_to):
149149
target_real = os.path.realpath(full_path)
150150
# Ensure the resolved path stays within the extraction root
151151
if os.path.commonpath([extract_root, target_real]) != extract_root:
152-
raise ValueError(f"Unsafe path: path traversal {member_path}") # noqa: TRY003
152+
raise ValueError(f"Unsafe path: path traversal {member_path}")
153153

154154
return full_path
155155

0 commit comments

Comments
 (0)