Fix "'break' outside loop" and remove unused exception

This commit is contained in:
Alessio Sergi 2017-03-06 14:37:29 +01:00
parent 4cec1025da
commit d2db1fb685

View File

@ -138,9 +138,6 @@ class Plugin(GlancesPlugin):
# Check the server connection with the version() method
try:
ret.version()
except requests.exceptions.ConnectTimeout:
logger.debug('docker plugin - Connection to {} timed out'.format(r_url))
break
except requests.exceptions.ConnectionError as e:
# Connexion error (Docker not detected)
# Let this message in debug mode