diff options
Diffstat (limited to 'pytests/powertest.py')
-rwxr-xr-x | pytests/powertest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pytests/powertest.py b/pytests/powertest.py index d1fcc29f499..f330a645a3b 100755 --- a/pytests/powertest.py +++ b/pytests/powertest.py @@ -772,7 +772,10 @@ class ProcessControl(object): """Return a list of 'proc' for the associated pids.""" procs = [] for pid in self.get_pids(): - procs.append(psutil.Process(pid)) + try: + procs.append(psutil.Process(pid)) + except psutil.NoSuchProcess: + pass return procs def is_running(self): |