]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
kill: handle AccessDenied exception 1985/head
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Fri, 2 Aug 2024 15:17:14 +0000 (17:17 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Fri, 2 Aug 2024 17:26:27 +0000 (19:26 +0200)
Fix unhandled exception psutilAccessDenied in process_matches_run().

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
teuthology/kill.py

index 720096a2671231ac063024c6adf7df13f292a636..a18e0ac8ad81361e90c3e540444f492a4bff37f7 100755 (executable)
@@ -223,6 +223,8 @@ def process_matches_run(pid, run_name):
             return True
     except psutil.NoSuchProcess:
         pass
+    except psutil.AccessDenied:
+        pass
     return False