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)