Fix UI for None attributes

main
Thomas Sileo 2022-07-11 09:33:56 +02:00
parent 8de28e287a
commit 1d01df55c8
1 changed files with 3 additions and 0 deletions

View File

@ -273,6 +273,9 @@ def _update_inline_imgs(content):
def _clean_html(html: str, note: Object) -> str:
if html is None:
logger.error(f"{html=} for {note.ap_id}/{note.ap_object}")
return ""
try:
return _emojify(
_replace_custom_emojis(