summaryrefslogtreecommitdiff
path: root/src/buildstream/sandbox
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/sandbox')
-rw-r--r--src/buildstream/sandbox/_sandboxbwrap.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/buildstream/sandbox/_sandboxbwrap.py b/src/buildstream/sandbox/_sandboxbwrap.py
index 1405611bc..433b0f754 100644
--- a/src/buildstream/sandbox/_sandboxbwrap.py
+++ b/src/buildstream/sandbox/_sandboxbwrap.py
@@ -493,17 +493,17 @@ class SandboxBwrap(Sandbox):
tries += 1
time.sleep(1 / 100)
continue
- else:
- # We've reached the upper limit of tries, bail out now
- # because something must have went wrong
- #
- raise
- elif e.errno == errno.ENOENT:
+
+ # We've reached the upper limit of tries, bail out now
+ # because something must have went wrong
+ #
+ raise
+ if e.errno == errno.ENOENT:
# Bubblewrap cleaned it up for us, no problem if we cant remove it
break
- else:
- # Something unexpected, reraise this error
- raise
+
+ # Something unexpected, reraise this error
+ raise
else:
# Successfully removed the symlink
break