CI: Handle missing package index

This commit is contained in:
lovetox
2022-05-06 18:54:50 +02:00
parent ff3a0a654a
commit d7a7f378d3

View File

@@ -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