mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-23 01:01:31 +03:00
Fix "'break' outside loop" and remove unused exception
This commit is contained in:
parent
4cec1025da
commit
d2db1fb685
@ -138,9 +138,6 @@ class Plugin(GlancesPlugin):
|
|||||||
# Check the server connection with the version() method
|
# Check the server connection with the version() method
|
||||||
try:
|
try:
|
||||||
ret.version()
|
ret.version()
|
||||||
except requests.exceptions.ConnectTimeout:
|
|
||||||
logger.debug('docker plugin - Connection to {} timed out'.format(r_url))
|
|
||||||
break
|
|
||||||
except requests.exceptions.ConnectionError as e:
|
except requests.exceptions.ConnectionError as e:
|
||||||
# Connexion error (Docker not detected)
|
# Connexion error (Docker not detected)
|
||||||
# Let this message in debug mode
|
# Let this message in debug mode
|
||||||
|
Loading…
Reference in New Issue
Block a user