Jonas Borgström 11 лет назад
Родитель
Сommit
af3e78e6b2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      attic/helpers.py

+ 1 - 1
attic/helpers.py

@@ -52,7 +52,7 @@ class UpgradableLock:
         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