aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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