From e2079c8f8419fa607500b02debf737ad1e2f3c41 Mon Sep 17 00:00:00 2001 From: David Huss <dh@atoav.com> Date: Wed, 9 Jun 2021 11:59:43 +0200 Subject: [PATCH] Add https option to config (fix) --- stechuhr_client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stechuhr_client/client.py b/stechuhr_client/client.py index 6d0a691..2e7779b 100644 --- a/stechuhr_client/client.py +++ b/stechuhr_client/client.py @@ -371,7 +371,7 @@ def update_id_patterns(config, logger) -> 'Config': # Send request try: r = requests.get(url, timeout=config["server"]["timeout"]) - except urllib3.exceptions.NewConnectionError as e: + except requests.packages.urllib3.exceptions.MaxRetryError as e: logger.error(f"Couldn't reach server at \"{url}\" (using existing patterns instead): {e}") return config -- GitLab