Alir3z4 / Alir3z4/html2text

<img src> fails assert

Aperta
#402 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
2.2k
Fork
296
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.