Skip to content

Conversation

@matl4c
Copy link

@matl4c matl4c commented Jul 21, 2022

The json response from pypi is not guaranteed to be all of the expected default encoding. When characters in a pypi package information are not the default encoding, this line here will error out. By using response.apparent_encoding, the encoding type is taken from the request's response to allow for a proper decode.

There are a lot of repositories that cause issues like this, but here is an example:
https://pypi.org/project/imath/

@jonas-eschle
Copy link
Collaborator

Hi, thanks for the PR! Could you add a test to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants