EEXIST is in errno
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Thu, 29 Mar 2012 08:54:53 +0000 (10:54 +0200)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Thu, 29 Mar 2012 08:54:53 +0000 (10:54 +0200)
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()