From 93a4f6ed024fae073f043e3be7f82cf10956352d Mon Sep 17 00:00:00 2001 From: Mikita Makiej <157150795+mmikita95@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:47:27 +0300 Subject: [PATCH] fix: also include empty non-`None` content as failing condition --- src/writer/ai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/writer/ai.py b/src/writer/ai.py index 23192adb6..0e3c6a44c 100644 --- a/src/writer/ai.py +++ b/src/writer/ai.py @@ -1824,7 +1824,7 @@ def _is_serialized(self, message: 'Conversation.Message') -> bool: # Prevent serialization of messages # not intended for user display return False - elif message.get("content") is None: + elif not message.get("content"): # Prevent serialization for messages # without meaningful content return False