fix lock
authorJan Szejko <janek37@gmail.com>
Wed, 15 Feb 2017 14:13:06 +0000 (15:13 +0100)
committerJan Szejko <janek37@gmail.com>
Wed, 15 Feb 2017 14:13:06 +0000 (15:13 +0100)
src/catalogue/utils.py

index 60a5671..2f3b949 100644 (file)
@@ -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()