EEXIST is in errno
[wolnelektury.git] / apps / catalogue / utils.py
index 185f5fa..a8a12e5 100644 (file)
@@ -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()