Skip to content

Commit eaee181

Browse files
author
user
committed
Fix the bug in the process logic.
1 parent 3390548 commit eaee181

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pip/_internal/utils/unpacking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def _check_link_target(tar: tarfile.TarFile, tarinfo: tarfile.TarInfo) -> None:
275275
tar.getmember(linkname)
276276
except KeyError:
277277
raise KeyError(linkname)
278-
raise KeyError(linkname)
278+
else:
279+
raise KeyError(linkname)
279280

280281
for member in tar.getmembers():
281282
fn = member.name

0 commit comments

Comments
 (0)