From 9bbf67af671cb9d810e6d643be007beb2d1d7fee Mon Sep 17 00:00:00 2001 From: juk0de Date: Mon, 26 Feb 2024 15:55:10 +0100 Subject: [PATCH] glossary: fixed printing of empty description --- chatmastermind/glossary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatmastermind/glossary.py b/chatmastermind/glossary.py index 11c7a3a..ccc4fe8 100644 --- a/chatmastermind/glossary.py +++ b/chatmastermind/glossary.py @@ -153,7 +153,7 @@ class Glossary: """ output: list[str] = [] output.append(f'{self.name} (ID: {self.ID}):') - if self.desc: + if self.desc and self.desc != 'None': output.append('- ' + self.desc) output.append(f'- Languages: {self.source_lang} -> {self.target_lang}') if with_entries: