mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-26 07:53:58 +00:00
locking: get out of kill_stale_lock more quickly if directory does not exist.
This commit is contained in:
parent
9ba249b482
commit
c3d0c525f9
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ def kill_stale_lock(self):
|
|||
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:
|
||||
|
|
Loading…
Reference in a new issue