From: Marcin Koziej Date: Thu, 29 Mar 2012 08:54:53 +0000 (+0200) Subject: EEXIST is in errno X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/a6554d68f532f4d15b75f75acd0d85d2b3b7ace2 EEXIST is in errno --- diff --git a/apps/catalogue/utils.py b/apps/catalogue/utils.py index 185f5fa34..a8a12e5f2 100644 --- a/apps/catalogue/utils.py +++ b/apps/catalogue/utils.py @@ -79,7 +79,7 @@ class LockFile(object): try: unlink(self.lockname) except OSError as oe: - if oe.errno != oe.EEXIST: + if oe.errno != EEXIST: raise oe self.lock.close()