It's actually an OSError, not an IOError
This commit is contained in:
parent
43ec9498e8
commit
92c8e68914
2
pyfpdb/interlocks.py
Executable file → Normal file
2
pyfpdb/interlocks.py
Executable file → Normal file
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user