Skip to content

Commit

Permalink
KeyError: b'Rss:' in memory_maps nicolargo#1551
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Oct 27, 2019
1 parent 2ebd227 commit 6d76daa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glances/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ def update(self):
if LINUX:
try:
extended['memory_swap'] = sum([v.swap for v in top_process.memory_maps()])
except psutil.NoSuchProcess:
except (psutil.NoSuchProcess, KeyError):
# KeyError catch for issue #1551)
pass
except (psutil.AccessDenied, NotImplementedError):
# NotImplementedError: /proc/${PID}/smaps file doesn't exist
Expand Down

0 comments on commit 6d76daa

Please sign in to comment.