mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 16:55:36 +00:00
Really fix EDEADLK bug
This commit is contained in:
parent
9178d76ce7
commit
af3e78e6b2
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def upgrade(self):
|
|||
try:
|
||||
fcntl.lockf(self.fd, fcntl.LOCK_EX)
|
||||
# Python 3.2 raises IOError, Python3.3+ raises OSError
|
||||
except (OSError):
|
||||
except (IOError, OSError):
|
||||
raise self.LockUpgradeFailed(self.path)
|
||||
self.is_exclusive = True
|
||||
|
||||
|
|
Loading…
Reference in a new issue