Fatal error using Python 3.4 and Docker plugin bug (issue #602)

pull/610/head
nicolargo 2015-05-20 17:11:46 +02:00
parent d89c7835d9
commit 21f9e3db5d
2 changed files with 9 additions and 1 deletions

7
NEWS
View File

@ -7,6 +7,13 @@ Version 2.5
...
Version 2.4.1
=============
Bugs corrected:
* Fatal error using Python 3.4 and Docker plugin bug (issue #602)
Version 2.4
===========

View File

@ -165,7 +165,8 @@ class Plugin(GlancesPlugin):
try:
self.docker_stats[c['Id']] = self.docker_client.stats(c['Id'], decode=True)
logger.debug("Create Docker stats object for container {}".format(c['Id']))
except (AttributeError, docker.errors.InvalidVersion) as e:
except Exception as e:
# Correct Issue #602
logger.error("Can not call Docker stats method {}".format(e))
# Get the docker stats