Skip to content

Commit 38a20b0

Browse files
committed
Minor correction
1 parent 910e122 commit 38a20b0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

avr_pr.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,11 @@ def terminate_ps(pid_s):
431431
valid, pid = is_valid_pid(pid_s)
432432
if (valid):
433433
if (check_pid(pid)):
434-
os.kill(pid, signal.SIGTERM)
435-
os.kill(pid, signal.SIGKILL)
434+
try:
435+
os.kill(pid, signal.SIGTERM)
436+
os.kill(pid, signal.SIGKILL)
437+
except ProcessLookupError:
438+
pass
436439
#else:
437440
#assert(0)
438441

0 commit comments

Comments
 (0)