From 846bd217f5a3c53188e0dd77e7abbb7529c1a472 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Mon, 21 Nov 2016 22:02:39 +0100 Subject: [PATCH] fix missing local variable 'e' #968 --- glances/plugins/glances_docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py index a28e1d53..c5368abc 100644 --- a/glances/plugins/glances_docker.py +++ b/glances/plugins/glances_docker.py @@ -365,7 +365,7 @@ class Plugin(GlancesPlugin): network_new['tx'] = netcounters["eth0"]["tx_bytes"] - self.netcounters_old[container_id]["eth0"]["tx_bytes"] network_new['cumulative_rx'] = netcounters["eth0"]["rx_bytes"] network_new['cumulative_tx'] = netcounters["eth0"]["tx_bytes"] - except KeyError: + except KeyError as e: # all_stats do not have INTERFACE information logger.debug("Can not grab network interface usage for container {0} ({1})".format(container_id, e)) logger.debug(all_stats)