summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-02-09 08:04:42 -0700
committerNed Batchelder <ned@nedbatchelder.com>2023-02-09 08:04:42 -0700
commit1c2e2be9fbba200330ec84062eecf6662cbd5ee0 (patch)
treeec89fd7857eacdcb57a189950eac8329f8422972 /ci
parent712bd2ba1bbf9e9eb51393539378c80f8272fe3b (diff)
downloadpython-coveragepy-git-1c2e2be9fbba200330ec84062eecf6662cbd5ee0.tar.gz
test: adapt to latest pylint
Diffstat (limited to 'ci')
-rw-r--r--ci/download_gha_artifacts.py2
-rw-r--r--ci/parse_relnotes.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/ci/download_gha_artifacts.py b/ci/download_gha_artifacts.py
index df22c688..3d20541a 100644
--- a/ci/download_gha_artifacts.py
+++ b/ci/download_gha_artifacts.py
@@ -21,7 +21,7 @@ def download_url(url, filename):
for chunk in response.iter_content(16*1024):
f.write(chunk)
else:
- raise Exception(f"Fetching {url} produced: status={response.status_code}")
+ raise RuntimeError(f"Fetching {url} produced: status={response.status_code}")
def unpack_zipfile(filename):
"""Unpack a zipfile, using the names in the zip."""
diff --git a/ci/parse_relnotes.py b/ci/parse_relnotes.py
index deebae5d..df83818a 100644
--- a/ci/parse_relnotes.py
+++ b/ci/parse_relnotes.py
@@ -74,7 +74,7 @@ def sections(parsed_data):
elif ttype == "text":
text.append(ttext)
else:
- raise Exception(f"Don't know ttype {ttype!r}")
+ raise RuntimeError(f"Don't know ttype {ttype!r}")
yield (*header, "\n".join(text))