Commit d7a7f378 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

CI: Handle missing package index

parent ff3a0a65
Pipeline #9788 failed with stage
in 14 seconds
......@@ -61,6 +61,9 @@ def is_manifest_valid(manifest: ManifestT) -> bool:
def download_package_index() -> ManifestT:
console.print('Download package index')
r = requests.get(PACKAGE_INDEX_URL)
if r.status_code == 404:
return {}
r.raise_for_status()
index = r.json()
return index
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment