Skip to content

Commit 96675e9

Browse files
gotchasbidoul
authored andcommitted
Do not parse JSON content with HTML parser
1 parent 4514d1f commit 96675e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pip/_internal/index/collector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ def parse_links(page: "IndexContent") -> Iterable[Link]:
345345
yanked_reason=yanked_reason,
346346
hashes=file.get("hashes", {}),
347347
)
348+
return
348349

349350
parser = HTMLLinkParser(page.url)
350351
encoding = page.encoding or "utf-8"

0 commit comments

Comments
 (0)