From a1f5ef154539bdb580359bd8e349a73ee5243056 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 11 Apr 2021 21:25:09 -0400 Subject: build: report errors a little better in download_gha_artifacts.py --- ci/download_gha_artifacts.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ci') diff --git a/ci/download_gha_artifacts.py b/ci/download_gha_artifacts.py index ed0bbe25..e47d4fb9 100644 --- a/ci/download_gha_artifacts.py +++ b/ci/download_gha_artifacts.py @@ -18,6 +18,8 @@ def download_url(url, filename): with open(filename, "wb") as f: for chunk in response.iter_content(16*1024): f.write(chunk) + else: + raise Exception(f"Fetching {url} produced: {response.status_code=}") def unpack_zipfile(filename): """Unpack a zipfile, using the names in the zip.""" -- cgit v1.2.1