Correct an issue if the docker lib is not installed

This commit is contained in:
nicolargo 2017-10-03 22:27:40 +02:00
parent 9e8f311ed0
commit 16a55836eb

View File

@ -95,11 +95,10 @@ class Plugin(GlancesPlugin):
"""Connect to the Docker server.""" """Connect to the Docker server."""
global docker_tag global docker_tag
ret = docker.from_env() if not docker_tag:
return None
# TODO: manage connection error return docker.from_env()
return ret
def reset(self): def reset(self):
"""Reset/init the stats.""" """Reset/init the stats."""