mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-27 03:04:16 +03:00
Glances crash on startup with a KeyError:u'docker' #1477
This commit is contained in:
parent
b9d37ecaf2
commit
555f3b8654
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user