pypa / readme_renderer

Safely render long_description/README files in Warehouse
Apache License 2.0
158 stars 89 forks source link

Handle invalid address errors #65

Closed di closed 6 years ago

di commented 6 years ago

bleach==2.1.3 now raises a ValueError: Invalid IPv6 URL exception from urllib if it tries to parse an invalid URL.

There's also other places where it may raise a ValueError while sanitizing, so catch them all and just fail the render instead of bubbling up the exception.