<img src> fails assert
Open
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 296
- PR merge metrics
- No merged PRs in 30d
Description
The following:
...raises an AssertionError because `src` exists in the element's attributes yet it's `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
- html2text version: 2020.1.16
- Python version: 3.11.4
Contributor guide
Assessment
This issue has not been assessed yet.