1
0
Fork 0
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:
Jonas Borgström 2014-05-31 15:17:06 +02:00
parent 9178d76ce7
commit af3e78e6b2

View file

@ -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