Skip to content

Commit a6c1199

Browse files
committed
Catch OSError when removing socket
1 parent 1f9a298 commit a6c1199

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/manual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
try:
1313
os.unlink(FIFO_NAME)
14-
except IOError:
14+
except (IOError, OSError):
1515
pass
1616

1717
os.mkfifo(FIFO_NAME)

0 commit comments

Comments
 (0)