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.
bleach==2.1.3
now raises aValueError: Invalid IPv6 URL
exception fromurllib
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.