Open mooffie opened 9 months ago
The following:
<img src alt="popup-image">
...raises an AssertionError because src exists in the element's attributes yet it's None.
src
None
The "problematic" source code:
if tag == "img" and start and not self.ignore_images: if "src" in attrs: assert attrs["src"] is not None
The following:
...raises an AssertionError because
src
exists in the element's attributes yet it'sNone
.The "problematic" source code: