python-discord / bot

The community bot for the Python Discord community
https://pythondiscord.com
MIT License
1.31k stars 652 forks source link

Skip line if no match against inventory line regex #3100

Closed jb3 closed 3 weeks ago

jb3 commented 3 weeks ago

We currently have an issue on bot (BOT-3VH on Sentry) which is failing to parse the sympy docs due to a malformed object inventory.

This looks to be caused by multi-line figure descriptions or something similar which are creating lines that do not match our regex.

Ignoring these lines is fine as they likely provide no additional context anyway, and the relevant symbol is still parsed as normal and links to the original docs.

sentry-io[bot] commented 3 weeks ago

Sentry Issue: BOT-3VH

ChrisLovering commented 3 weeks ago

/merge