diff --git a/stechuhr_client/client.py b/stechuhr_client/client.py index 2e7779bc480d56fd4e7514d7b23fddf421b81146..8bcd34722842f93785fde3510941891e63e78db7 100644 --- a/stechuhr_client/client.py +++ b/stechuhr_client/client.py @@ -372,7 +372,13 @@ def update_id_patterns(config, logger) -> 'Config': try: r = requests.get(url, timeout=config["server"]["timeout"]) except requests.packages.urllib3.exceptions.MaxRetryError as e: - logger.error(f"Couldn't reach server at \"{url}\" (using existing patterns instead): {e}") + logger.error(f"Couldn't reach server at \"{url}\" (Timeout, using existing patterns instead): {e}") + return config + except requests.packages.urllib3.exceptions.ConnectionRefusedError as e: + logger.error(f"Couldn't reach server at \"{url}\" (Connection Refused, using existing patterns instead): {e}") + return config + except requests.packages.urllib3.exceptions.NewConnectionError as e: + logger.error(f"Couldn't reach server at \"{url}\" (NewConnectionError, using existing patterns instead): {e}") return config # If the response was ok update the pattern if it changed, else display a warning