aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2022-11-20 21:00:00 +0000
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2022-11-20 21:00:00 +0000
commit913c5bf4c52f9b5e32cbc6f9e43bb05c603b6f3b (patch)
tree926aa9a22986253de6a31af441113aab386665f8 /util
parente4534432c064efc167c84c2b2cbc957ad72dcb13 (diff)
Allow duplicate file in do_link
Diffstat (limited to 'util')
-rw-r--r--util/runners.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/runners.py b/util/runners.py
index 9252d86..63a3f3d 100644
--- a/util/runners.py
+++ b/util/runners.py
@@ -25,5 +25,10 @@ def do_link(source, destination):
print(f"Linking {source} -> {destination}")
try:
os.link(source, destination)
+ except OSError as e:
+ if e.errno == 17:
+ print(f"File {destination} already exists")
+ else:
+ raise StepFailedError("Link raised exeption: " + str(e)) from e
except Exception as e:
raise StepFailedError("Link raised exeption: " + str(e)) from e