From: Jan Szejko Date: Wed, 15 Feb 2017 14:13:06 +0000 (+0100) Subject: fix lock X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/561cc041eb4b1033d16d915345810b4a6abb3a55?ds=inline fix lock --- 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()