From d7a7f378d3266363dc73aa40ccb66d24c6269b96 Mon Sep 17 00:00:00 2001 From: lovetox Date: Fri, 6 May 2022 18:54:50 +0200 Subject: [PATCH] CI: Handle missing package index --- .ci/deploy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ci/deploy.py b/.ci/deploy.py index 584e180..1aeae69 100644 --- a/.ci/deploy.py +++ b/.ci/deploy.py @@ -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