fetch_with_timeout(url, seconds, fallback) passing timeout=seconds and returning fallback if requests.exceptions.Timeout (or any RequestException) fires — production callers always get an answer.fetch_with_timeout(slow_url, 2, {}){} when the server exceeds 2 sThe timeout exception became a fallback value.
Timeout subclasses RequestException.
Return response.json() on the happy path.