Skip to content

Commit 5e615fc

Browse files
committed
Merging pull request 156
Signed-off-by: Lukáš Doktor <[email protected]> * github.com:autotest/aexpect: client: Avoid double-cleanup exception
2 parents f9fd707 + 0caa8c9 commit 5e615fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aexpect/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def close(self, sig=signal.SIGKILL):
473473
try:
474474
unlock_fd(lock)
475475
os.unlink(self._close_lockfile)
476-
except FileNotFoundError:
476+
except (FileNotFoundError, OSError):
477477
# File already removed by other thread
478478
pass
479479

0 commit comments

Comments
 (0)