From 6260f193cd31ee06c4bdf0570a70de66d6994d6f Mon Sep 17 00:00:00 2001 From: nicolargo Date: Thu, 16 Nov 2017 20:53:25 +0100 Subject: [PATCH] KeyError: 'memory_info' on stats sum #1188 --- NEWS | 1 + glances/plugins/glances_processlist.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index 0625ea67..3baafde0 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,7 @@ Bugs corrected: * Add missing mount-observe and system-observe interfaces #1179 * OS specific arguments should be documented and reported #1180 * 'ascii' codec can't encode character u'\U0001f4a9' in position 4: ordinal not in range(128) #1185 + * KeyError: 'memory_info' on stats sum #1188 Backward-incompatible changes: diff --git a/glances/plugins/glances_processlist.py b/glances/plugins/glances_processlist.py index 2be1a40e..c3e7cf7c 100644 --- a/glances/plugins/glances_processlist.py +++ b/glances/plugins/glances_processlist.py @@ -605,6 +605,9 @@ class Plugin(GlancesPlugin): # Compute stats summary ret = 0 for p in self.stats: + if key not in p: + # Correct issue #1188 + continue if indice is None: ret += p[key] else: