From a6554d68f532f4d15b75f75acd0d85d2b3b7ace2 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Thu, 29 Mar 2012 10:54:53 +0200 Subject: [PATCH] EEXIST is in errno --- apps/catalogue/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.20.1