Catch OSError exception in psutil. Fixes https://github.com/GNS3/gns3-gui/issues/3127

This commit is contained in:
grossmj
2021-02-15 15:57:24 +10:30
parent 64f172fe20
commit 16c84e23a9
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ def kill_ghosts():
if name in detect_process:
proc.kill()
log.warning("Killed ghost process %s", name)
except (psutil.NoSuchProcess, psutil.AccessDenied):
except (OSError, psutil.NoSuchProcess, psutil.AccessDenied):
pass