Correctly handle <img> with no src attribute

This commit is contained in:
miruka 2020-07-16 11:24:42 -04:00
parent 60832b2fcd
commit 7d7376a5cf

View File

@ -395,7 +395,7 @@ class HTMLProcessor:
if el.tag != "img":
return el
src = el.attrib.get("src")
src = el.attrib.get("src", "")
width = el.attrib.get("width")
height = el.attrib.get("height")
is_emote = "data-mx-emote" in el.attrib