Skip to content

Commit

Permalink
Not raise if the process is already ended (v6d-io#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
siyuan0322 authored Apr 7, 2021
1 parent d179fb3 commit fc6aade
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/vineyard/launcher/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ def join(self):

def dispose(self, desired=True):
if self._status == LauncherStatus.RUNNING:
self._proc.terminate()
try:
self._proc.terminate()
except ProcessLookupError:
pass
if desired:
self._status = LauncherStatus.FAILED
else:
Expand Down

0 comments on commit fc6aade

Please sign in to comment.