mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Catch OSError exception in psutil. Fixes https://github.com/GNS3/gns3-gui/issues/3127
This commit is contained in:
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"
|
||||
|
||||
Reference in new issue
Block a user