diff --git a/attic/helpers.py b/attic/helpers.py index 5df00da00..035850526 100644 --- a/attic/helpers.py +++ b/attic/helpers.py @@ -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