Unable to launch Glances on Windows #1021

This commit is contained in:
Nicolargo
2017-02-07 14:43:55 +01:00
parent 82eaf3372f
commit 17e1c8c674
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -7,6 +7,7 @@ Version 2.x
Bugs corrected:
* Unable to launch Glances on Windows (issue #1021)
Version 2.8.2
=============

View File

@@ -269,7 +269,7 @@ class GlancesProcesses(object):
# Patch for issue #391
try:
self.cmdline_cache[procstat['pid']] = proc.cmdline()
except (AttributeError, UnicodeDecodeError, psutil.AccessDenied, psutil.NoSuchProcess):
except (AttributeError, UnicodeDecodeError, psutil.AccessDenied, psutil.NoSuchProcess, psutil.WindowsError):
self.cmdline_cache[procstat['pid']] = ""
procstat['cmdline'] = self.cmdline_cache[procstat['pid']]