Return None when asked to `text_to_dom` None.

This should desambiguate the base data semantics.
This commit is contained in:
Sergio Martínez Portela 2022-08-27 13:06:08 +02:00
parent f3ca823b0c
commit baaa7cbb86
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ def get_links_from_content(content):
def text_to_dom(tokens, item):
if tokens is None:
return []
return None
in_link = False
in_description = False