mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 04:04:03 +03:00
Add try/except for NoSuchProcess error - issue #421
This commit is contained in:
parent
4521f2aa0b
commit
1818c4fbed
@ -155,7 +155,7 @@ class GlancesProcesses(object):
|
||||
# Patch for issue #391
|
||||
try:
|
||||
self.cmdline_cache[procstat['pid']] = ' '.join(proc.cmdline())
|
||||
except (AttributeError, psutil.AccessDenied, UnicodeDecodeError):
|
||||
except (AttributeError, UnicodeDecodeError, psutil.AccessDenied, psutil.NoSuchProcess):
|
||||
self.cmdline_cache[procstat['pid']] = ""
|
||||
procstat['cmdline'] = self.cmdline_cache[procstat['pid']]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user