mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-05 17:22:02 +03:00
Replace try by in
This commit is contained in:
parent
67d9b96d86
commit
c5c961c1a0
@ -265,9 +265,7 @@ class GlancesProcesses(object):
|
||||
self.set_max_values(k, procstat[k])
|
||||
|
||||
# Process command line (cached with internal cache)
|
||||
try:
|
||||
self.cmdline_cache[procstat['pid']]
|
||||
except KeyError:
|
||||
if procstat['pid'] not in self.cmdline_cache:
|
||||
# Patch for issue #391
|
||||
try:
|
||||
self.cmdline_cache[procstat['pid']] = proc.cmdline()
|
||||
|
Loading…
Reference in New Issue
Block a user