Structure changes to match other projects and minor logging improvements

This commit is contained in:
Ian Renton
2026-07-26 07:47:38 +01:00
parent ecab8d6d16
commit c3bcc1190d
483 changed files with 70 additions and 55 deletions
+3 -1
View File
@@ -4,7 +4,7 @@ from threading import Thread, Event
import pytz
import requests
from requests.exceptions import ConnectionError
from requests.exceptions import ConnectionError, ReadTimeout
from alertproviders.alert_provider import AlertProvider
from core.constants import HTTP_HEADERS
@@ -59,6 +59,8 @@ class HTTPAlertProvider(AlertProvider):
except ConnectionError:
logging.warning(f"Connection error when accessing {self.name} alerts API.")
except ReadTimeout:
logging.warning(f"Read timeout when accessing {self.name} alerts API.")
except Exception:
self.status = "Error"
logging.exception("Exception in HTTP JSON Alert Provider (" + self.name + ")")