mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-11 06:18:11 +03:00
Add catch if Docker lib is not in the good version
This commit is contained in:
parent
13a8bf5fa3
commit
632faeb102
@ -162,7 +162,7 @@ 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 as e:
|
||||
except (AttributeError, docker.errors.InvalidVersion) as e:
|
||||
logger.error("Can not call Docker stats method {}".format(e))
|
||||
|
||||
# Get the docker stats
|
||||
|
Loading…
Reference in New Issue
Block a user