From 28e71df82d13b14e6b1af079420595883dd2c776 Mon Sep 17 00:00:00 2001 From: Mario Ostieri <107915956+mariostieriansys@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:44:49 +0100 Subject: [PATCH] add handling of non-admin processes (#390) --- src/ansys/pyensight/core/launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/pyensight/core/launcher.py b/src/ansys/pyensight/core/launcher.py index 9e1d635e51..733d28c39c 100644 --- a/src/ansys/pyensight/core/launcher.py +++ b/src/ansys/pyensight/core/launcher.py @@ -180,7 +180,7 @@ def _find_ports_used_by_other_pyensight_and_ensight(self): for process in psutil.process_iter(): try: process_cmdline = process.cmdline() - except (psutil.AccessDenied, psutil.ZombieProcess): + except (psutil.AccessDenied, psutil.ZombieProcess, OSError): continue if not process_cmdline: continue