swh-lister/swh/lister
Antoine Lambert 3f6c7edc24 maven: Prevent UnicodeDecodeError when processing pom file
Pass the raw bytes of pom file content in xmltodict.parse and let
it do the string decoding based on the encoding declared in pom file.

If the string decoding failed due to an invalid declared encoding,
xml.parsers.expat.ExpatError will be raised and will be caught by
the lister, ignoring the pom file and continuing listing.

Related to T3874
2022-05-02 14:01:58 +02:00
..
bitbucket python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
cgit python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
cran python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
crates crates: Create one origin per package instead of per version 2022-04-28 16:10:33 +02:00
debian python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
gitea python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
github Make user_agent a parameter of GitHubSession 2022-04-26 11:08:53 +02:00
gitlab python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
gnu python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
launchpad python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
maven maven: Prevent UnicodeDecodeError when processing pom file 2022-05-02 14:01:58 +02:00
npm python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
opam python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
packagist python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
phabricator python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
pypi python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
sourceforge sourceforge: Fix listing of bzr projects 2022-04-21 18:19:07 +02:00
tests python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
tuleap python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
__init__.py Hook up listers implemented with the new pattern to the CLI 2021-01-11 11:00:29 +01:00
cli.py python: Reformat code with black 22.3.0 2022-04-08 15:15:09 +02:00
pattern.py pattern: Use URL network location as instance name when not provided 2021-07-13 12:33:49 +02:00
py.typed typing: minimal changes to make a no-op mypy run pass 2019-10-28 15:35:21 +01:00
utils.py Remove no longer needed tenacity workarounds 2021-12-08 13:28:11 +01:00