Merge branch 'mizaki-talker_parse_key' into develop

This commit is contained in:
Timmy Welch 2023-05-16 17:33:24 -07:00
commit 661d758315
No known key found for this signature in database

View File

@ -130,9 +130,9 @@ 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"]:
if settings.get(f"{self.id}_url"):
self.api_url = fix_url(settings[f"{self.id}_url"])
settings[f"{self.id}_url"] = self.api_url