mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-23 09:11:49 +03:00
fix missing local variable 'e' #968
This commit is contained in:
parent
3816c76017
commit
846bd217f5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user