It's actually an OSError, not an IOError
This commit is contained in:
Executable → Regular
+1
-1
@@ -108,7 +108,7 @@ class InterProcessLockFcntl(InterProcessLockBase):
|
||||
self.lockfd = 0
|
||||
try:
|
||||
os.unlink(self.lock_file_name)
|
||||
except IOError:
|
||||
except OSError:
|
||||
# We don't care about the existence of the file too much here. It's the flock() we care about,
|
||||
# And that should just go away magically.
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user