From 1d01df55c8f69848751ba16499606e4e1155ad31 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 11 Jul 2022 09:33:56 +0200 Subject: [PATCH] Fix UI for None attributes --- app/templates.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/templates.py b/app/templates.py index 8c86f36..da2354b 100644 --- a/app/templates.py +++ b/app/templates.py @@ -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(