From 271bfac83419c5273ccc1661455ca71ade3fb0e8 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Fri, 3 Mar 2023 00:07:49 +0000 Subject: [PATCH] Do not fail when talker key is missing --- comictalker/comictalker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comictalker/comictalker.py b/comictalker/comictalker.py index 319dd9b..74e8b74 100644 --- a/comictalker/comictalker.py +++ b/comictalker/comictalker.py @@ -130,7 +130,7 @@ class ComicTalker: settings is a dictionary of settings defined in register_settings. It is only guaranteed that the settings defined in register_settings will be present. """ - if settings[f"{self.id}_key"]: + if settings.get(f"{self.id}_key"): self.api_key = settings[f"{self.id}_key"] if settings[f"{self.id}_url"]: self.api_url = fix_url(settings[f"{self.id}_url"])