check-snapshots: add log info when a download fails

When a requests.get() fails the exact nature of the error is
currently discarded. This commit adds a small print() to show
what exactly went wrong.
This commit is contained in:
Michael Vogt 2024-02-20 09:55:52 +01:00 committed by Brian C. Lane
parent 34cda2e1e3
commit 2290aff94d

View file

@ -24,6 +24,7 @@ def fetch_snapshots_api(url, timeout=SNAPSHOTS_TIMEOUT):
try:
r = requests.get(url, timeout=timeout)
except BaseException as e: # pylint: disable=broad-exception-caught
print(f"Problem downloading {url}: {e}")
return None
elapsed = time.time() - start
if r.status_code != 200: