Skip to content

Commit

Permalink
Update src/poetry/repositories/pypi_repository.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed May 27, 2022
1 parent 090cb4f commit 9e5cbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poetry/repositories/pypi_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9e5cbf3

Please sign in to comment.