mirror of https://github.com/nicolargo/glances
Missing attributeerror catch on Windows...
parent
f483671802
commit
73f5b3e8d3
|
@ -83,7 +83,7 @@ class GlancesProcesses(object):
|
||||||
except (KeyError, psutil.AccessDenied):
|
except (KeyError, psutil.AccessDenied):
|
||||||
try:
|
try:
|
||||||
self.username_cache[procstat['pid']] = proc.uids().real
|
self.username_cache[procstat['pid']] = proc.uids().real
|
||||||
except (KeyError, psutil.AccessDenied):
|
except (KeyError, AttributeError, psutil.AccessDenied):
|
||||||
self.username_cache[procstat['pid']] = "?"
|
self.username_cache[procstat['pid']] = "?"
|
||||||
procstat['username'] = self.username_cache[procstat['pid']]
|
procstat['username'] = self.username_cache[procstat['pid']]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue