parent
a1296433b0
commit
5c4dc84bad
1 changed files with 4 additions and 0 deletions
|
|
@ -238,6 +238,10 @@ def extract_images_from_html(doc: "Document", content: str, is_private: bool = F
|
|||
if b"," in content:
|
||||
content = content.split(b",")[1]
|
||||
|
||||
if not content:
|
||||
# if there is no content, return the original tag
|
||||
return match.group(0)
|
||||
|
||||
try:
|
||||
content = safe_b64decode(content)
|
||||
except BinasciiError:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue