Skip to content
Snippets Groups Projects
Commit 48029115 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Better Error handling on broken connections

parent f3150b53
Branches
No related tags found
No related merge requests found
......@@ -380,6 +380,9 @@ def update_id_patterns(config, logger) -> '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
except:
logger.error(f"Couldn't reach server at \"{url}\" (Error): {e}")
return config
# If the response was ok update the pattern if it changed, else display a warning
if r.ok:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment