Alir3z4 / Alir3z4/html2text

<img src> fails assert

Open
#402 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
296
PR merge metrics
No merged PRs in 30d

Description

The following:

popup-image

...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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.