We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f114f0 commit fb22062Copy full SHA for fb22062
1 file changed
fasteners/process_lock.py
@@ -83,7 +83,7 @@ def __init__(self,
83
def _try_acquire(self, blocking, watch):
84
try:
85
self.trylock()
86
- except IOError as e:
+ except (IOError, OSError) as e:
87
if e.errno in (errno.EACCES, errno.EAGAIN):
88
if not blocking or watch.expired():
89
return False
0 commit comments