diff --git a/lib/locking.py b/lib/locking.py
index 16f302e73a0e72647d87f16271c91719af6317a2..d24abdf4dc72d08be7b0e927b645ca64c1ed34c0 100644
--- a/lib/locking.py
+++ b/lib/locking.py
@@ -498,7 +498,7 @@ class LockSet:
           # Of course something is going to be really wrong, after this.
           if lock._is_owned():
             lock.release()
-            raise
+          raise
 
     except:
       # If something went wrong and we had the set-lock let's release it...