Skip to content

Commit

Permalink
kill: handle AccessDenied exception
Browse files Browse the repository at this point in the history
Fix unhandled exception psutilAccessDenied in process_matches_run().

Signed-off-by: Kyr Shatskyy <[email protected]>
  • Loading branch information
Kyr Shatskyy committed Aug 2, 2024
1 parent da7aef6 commit d218c61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions teuthology/kill.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ def process_matches_run(pid, run_name):
return True
except psutil.NoSuchProcess:
pass
except psutil.AccessDenied:
pass
return False


Expand Down

0 comments on commit d218c61

Please sign in to comment.