From 4886e27e5ddaa9d1d5256e01359e5e1f9c1161ae Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Thu, 23 Apr 2020 22:47:08 -0700 Subject: [PATCH] Fix LexiconModel.title --- amanuensis/models/lexicon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amanuensis/models/lexicon.py b/amanuensis/models/lexicon.py index 43a270e..700e6f8 100644 --- a/amanuensis/models/lexicon.py +++ b/amanuensis/models/lexicon.py @@ -48,7 +48,7 @@ class LexiconModel(): @property def title(self) -> str: - return self.cfg.get('title', f'Lexicon {self.cfg.name}') + return self.cfg.get('title') or f'Lexicon {self.cfg.name}' def log(self, message: str) -> None: now = int(time.time())