summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-04-11 21:25:09 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-04-11 21:25:09 -0400
commita1f5ef154539bdb580359bd8e349a73ee5243056 (patch)
tree0dd1a544126a9f1e4a0841f3f9f4766d241ea714
parentc2c9d7d0037257ce5b4d9a278460d3eb3676bc5d (diff)
downloadpython-coveragepy-git-a1f5ef154539bdb580359bd8e349a73ee5243056.tar.gz
build: report errors a little better in download_gha_artifacts.py
-rw-r--r--ci/download_gha_artifacts.py2
1 files changed, 2 insertions, 0 deletions
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."""