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: