Improve error reporting consistency and ensure SEMI_STATIC_URL_DATA_CACHE caches 400-series responses from the server so we don't keep requesting summit/park/bunker data for a reference that the user typod and doesn't actually exist.

This commit is contained in:
Ian Renton
2026-07-25 08:29:22 +01:00
parent 2fc9658571
commit 66010dc682
14 changed files with 25 additions and 22 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class HTTPSpotProvider(SpotProvider):
logging.debug("Received data from " + self.name + " spot API.")
else:
self.status = "Error"
logging.warning(f"{self.name} spot API returned HTTP {http_response.status_code}.")
logging.warning(f"HTTP {http_response.status_code} when calling {self.name} spot API.")
except Exception:
self.status = "Error"