fix missing local variable 'e' #968

This commit is contained in:
nicolargo 2016-11-21 22:02:39 +01:00
parent 3816c76017
commit 846bd217f5

View File

@ -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)