diff --git a/scripts/publish/test_publish.py b/scripts/publish/test_publish.py index 5d1ec5ca688b..eb6127e95861 100644 --- a/scripts/publish/test_publish.py +++ b/scripts/publish/test_publish.py @@ -97,7 +97,10 @@ def get_new_version(project_name: str) -> str: # pick a version that doesn't exist on any target yet versions = set() for url in project_urls[project_name]: - data = httpx.get(url).text + try: + data = httpx.get(url).text + except httpx.HTTPError as err: + raise RuntimeError(f"Failed to fetch {url}") from err href_text = "]+>([^<>]+)" for filename in list(m.group(1) for m in re.finditer(href_text, data)): if filename.endswith(".whl"):