From 9e5cbf3f474c53f5910e85d23e7be210e0d7d1f6 Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Fri, 27 May 2022 20:47:51 +0200 Subject: [PATCH] Update src/poetry/repositories/pypi_repository.py --- src/poetry/repositories/pypi_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poetry/repositories/pypi_repository.py b/src/poetry/repositories/pypi_repository.py index 50536672136..c42cdc31a67 100644 --- a/src/poetry/repositories/pypi_repository.py +++ b/src/poetry/repositories/pypi_repository.py @@ -254,7 +254,7 @@ def _get(self, endpoint: str) -> dict[str, Any] | None: self._base_url + endpoint, raise_for_status=False ) - if json_response.status_code == 404: + if json_response.status_code != 200: return None json: dict[str, Any] = json_response.json()