Skip to content

Commit fb22062

Browse files
authored
Catch OSError in the InterProcessLock (#123)
1 parent 3f114f0 commit fb22062

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fasteners/process_lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self,
8383
def _try_acquire(self, blocking, watch):
8484
try:
8585
self.trylock()
86-
except IOError as e:
86+
except (IOError, OSError) as e:
8787
if e.errno in (errno.EACCES, errno.EAGAIN):
8888
if not blocking or watch.expired():
8989
return False

0 commit comments

Comments
 (0)