Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bot/exts/info/doc/_inventory_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ async def _load_v2(stream: aiohttp.StreamReader) -> InventoryDict:

async for line in ZlibStreamReader(stream):
m = _V2_LINE_RE.match(line.rstrip())

# If we don't have a match, the package is probably doing something
# funky with new-lines and we can discount this line, it's likely a
# multi-line figure description or something similar.
if not m:
continue

name, type_, _prio, location, _dispname = m.groups() # ignore the parsed items we don't need
if location.endswith("$"):
location = location[:-1] + name
Expand Down