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

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

No files matched your search

@@ -231,7 +231,7 @@ Processus:
try:
psinfo = proc.as_dict(attrs=["name", "exe"])
data += "* {} {}\n".format(psinfo["name"], psinfo["exe"])
except psutil.NoSuchProcess:
except (OSError, psutil.NoSuchProcess, psutil.AccessDenied):
pass
data += "\n\nProjects"