From 6d76daaecab7baf8608710d8a9bc021775ae4aa8 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 27 Oct 2019 11:44:11 +0100 Subject: [PATCH] KeyError: b'Rss:' in memory_maps #1551 --- glances/processes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glances/processes.py b/glances/processes.py index cdffb541cc..2fcef2596f 100644 --- a/glances/processes.py +++ b/glances/processes.py @@ -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