CI: Handle missing package index
This commit is contained in:
@@ -61,6 +61,9 @@ def is_manifest_valid(manifest: ManifestT) -> bool:
|
|||||||
def download_package_index() -> ManifestT:
|
def download_package_index() -> ManifestT:
|
||||||
console.print('Download package index')
|
console.print('Download package index')
|
||||||
r = requests.get(PACKAGE_INDEX_URL)
|
r = requests.get(PACKAGE_INDEX_URL)
|
||||||
|
if r.status_code == 404:
|
||||||
|
return {}
|
||||||
|
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
index = r.json()
|
index = r.json()
|
||||||
return index
|
return index
|
||||||
|
|||||||
Reference in New Issue
Block a user