diff options
author | Nicolas Hennion <nicolashennion@gmail.com> | 2016-08-21 10:15:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-21 10:15:03 +0200 |
commit | ab9312ce83d68fe1191a739487c92e3e186dfea6 (patch) | |
tree | e9bf3eb61346e7d32bd655376faf7e6f26456dea | |
parent | a6daeb72de06fae337e2b187e5afef4157bf357d (diff) | |
parent | b32087a136a1e1df5d2a7d3fd868b4afbbce967a (diff) |
Merge pull request #909 from SkyLothar/develop
missing local variable "e".
@SkyLothar Thanks for the patch !
-rw-r--r-- | glances/plugins/glances_docker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py index 5b75832b..41923f04 100644 --- a/glances/plugins/glances_docker.py +++ b/glances/plugins/glances_docker.py @@ -356,7 +356,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("Cannot grab network interface usage for container {} ({})".format(container_id, e)) logger.debug(all_stats) |