mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 01:41:57 -04:00
use for loop
This commit is contained in:
parent
6a3aa23f9b
commit
9ba249b482
1 changed files with 1 additions and 3 deletions
|
|
@ -170,9 +170,7 @@ class ExclusiveLock:
|
|||
if not self.by_me():
|
||||
raise NotMyLock(self.path)
|
||||
os.unlink(self.unique_name)
|
||||
retry = 0
|
||||
while retry < 42:
|
||||
retry += 1
|
||||
for retry in range(42):
|
||||
try:
|
||||
os.rmdir(self.path)
|
||||
except OSError as err:
|
||||
|
|
|
|||
Loading…
Reference in a new issue