diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py index 1b6cfcf..b0947c5 100644 --- a/src/cogs/ollama.py +++ b/src/cogs/ollama.py @@ -1026,7 +1026,7 @@ class Ollama(commands.Cog): break if message.author.id == 1101439218334576742 and len(message.embeds): embed = message.embeds[0] - if embed.description.strip() == "NEW TRUTH": + if not embed.description or embed.description.strip() == "NEW TRUTH": continue if embed.type == "rich" and embed.colour and embed.colour.value == 0x5448EE: self.history.add_message(thread_id, "assistant", embed.description)