From 7a3866367262f5b7ad0a001d5fdc9ee7f01ca4c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sat, 7 Dec 2024 15:55:22 +0100 Subject: [PATCH] compat: Fix subproject symlink_to() error-handling --- compat/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/build.py b/compat/build.py index 4681e8561..7efa7a838 100644 --- a/compat/build.py +++ b/compat/build.py @@ -607,7 +607,7 @@ def grab_subprojects_from_parent(subprojects: dict[str, Path], releng_location: subp_here.symlink_to(location, target_is_directory=True) continue except OSError as e: - if not getattr(e, "winerror") == 1314: + if not getattr(e, "winerror", None) == 1314: raise e subprocess.run(["git", "worktree", "add", subp_here],