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:
parent
34cda2e1e3
commit
2290aff94d
1 changed files with 1 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ def fetch_snapshots_api(url, timeout=SNAPSHOTS_TIMEOUT):
|
||||||
try:
|
try:
|
||||||
r = requests.get(url, timeout=timeout)
|
r = requests.get(url, timeout=timeout)
|
||||||
except BaseException as e: # pylint: disable=broad-exception-caught
|
except BaseException as e: # pylint: disable=broad-exception-caught
|
||||||
|
print(f"Problem downloading {url}: {e}")
|
||||||
return None
|
return None
|
||||||
elapsed = time.time() - start
|
elapsed = time.time() - start
|
||||||
if r.status_code != 200:
|
if r.status_code != 200:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue