提交 555f3b86 编写于 作者: N nicolargo

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

上级 b9d37eca
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册