From c3d0c525f98e67608bf22d3216f64afd019e29fc Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 18 Jan 2023 13:44:51 +0100 Subject: [PATCH] locking: get out of kill_stale_lock more quickly if directory does not exist. --- src/borg/locking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/locking.py b/src/borg/locking.py index e9718ebda..2d94ab66d 100644 --- a/src/borg/locking.py +++ b/src/borg/locking.py @@ -195,7 +195,7 @@ class ExclusiveLock: try: names = os.listdir(self.path) except FileNotFoundError: # another process did our job in the meantime. - pass + return False except PermissionError: # win32 might throw this. return False else: