From 561cc041eb4b1033d16d915345810b4a6abb3a55 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 15 Feb 2017 15:13:06 +0100 Subject: [PATCH] fix lock --- src/catalogue/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/catalogue/utils.py b/src/catalogue/utils.py index 60a56714c..2f3b94964 100644 --- a/src/catalogue/utils.py +++ b/src/catalogue/utils.py @@ -85,7 +85,7 @@ class LockFile(object): try: unlink(self.lockname) except OSError as oe: - if oe.errno != EEXIST: + if oe.errno != ENOENT: raise oe self.lock.close() -- 2.20.1