diff --git a/src/borg/locking.py b/src/borg/locking.py index a98d7b1e2..efb9e997b 100644 --- a/src/borg/locking.py +++ b/src/borg/locking.py @@ -191,6 +191,8 @@ class ExclusiveLock: names = os.listdir(self.path) except FileNotFoundError: # another process did our job in the meantime. pass + except PermissionError: # win32 might throw this. + return False else: for name in names: try: