From d2db1fb685892ad9dea9b2455a2bff75f736571d Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 6 Mar 2017 14:37:29 +0100 Subject: [PATCH] Fix "'break' outside loop" and remove unused exception --- glances/plugins/glances_docker.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py index aa1f5d4f..00fe13f6 100644 --- a/glances/plugins/glances_docker.py +++ b/glances/plugins/glances_docker.py @@ -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