diff --git a/NEWS b/NEWS index b226aeb5..d824ff1b 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,7 @@ Enhancements and new features: Bugs corrected: * Failed to connect to bus: No such file or directory #1156 + * glances_plugin.py has a problem with specific docker output #1160 Backward-incompatible changes: diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py index 4ad3669e..4eaf6880 100644 --- a/glances/plugins/glances_docker.py +++ b/glances/plugins/glances_docker.py @@ -376,7 +376,7 @@ class Plugin(GlancesPlugin): iow = [i for i in iocounters['io_service_bytes_recursive'] if i['op'] == 'Write'][0]['value'] ior_old = [i for i in self.iocounters_old[container_id]['io_service_bytes_recursive'] if i['op'] == 'Read'][0]['value'] iow_old = [i for i in self.iocounters_old[container_id]['io_service_bytes_recursive'] if i['op'] == 'Write'][0]['value'] - except (IndexError, KeyError, TypeError) as e: + except (TypeError, IndexError, KeyError) as e: # all_stats do not have io information logger.debug("docker plugin - Cannot grab block IO usage for container {} ({})".format(container_id, e)) else: