Skip to content

Commit 4afe368

Browse files
authored
Merge branch '3.10' into backport-371b4ea-3.10
2 parents 9a46249 + e0cb9af commit 4afe368

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/posixpath.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,9 @@ def _joinrealpath(path, rest, strict, seen):
438438
newpath = join(path, name)
439439
try:
440440
st = os.lstat(newpath)
441-
except ignored_error:
441+
except OSError:
442+
if strict:
443+
raise
442444
is_link = False
443445
else:
444446
is_link = stat.S_ISLNK(st.st_mode)

0 commit comments

Comments
 (0)