Glances crash on startup with a KeyError:u'docker' #1477

This commit is contained in:
nicolargo 2019-04-27 10:47:12 +02:00
parent b9d37ecaf2
commit 555f3b8654

View File

@ -33,10 +33,10 @@ from glances.processes import sort_stats as sort_stats_processes, weighted, glan
# https://github.com/docker/docker-py
try:
import docker
except ImportError as e:
except Exception as e:
import_error_tag = True
# Display debu message if import KeyError
logger.warning("Missing Python Lib ({}), Docker plugin is disabled".format(e))
logger.warning("Error loading Docker Python Lib. Docker plugin is disabled ({})".format(e))
else:
import_error_tag = False