From af3e78e6b2d0fd72c8f327b073aea4392bf8ba2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Sat, 31 May 2014 15:17:06 +0200 Subject: [PATCH] Really fix EDEADLK bug --- attic/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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