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