From 6af2476339ddffeac8da124a13dccc12f2eafc32 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Tue, 18 Mar 2025 09:50:49 -0400 Subject: [PATCH] Update settings to fix a smell. Add some spelling words. --- .vscode/settings.json | 7 ++----- off-cooldown-bot/settings.py | 4 ++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3e3a7e4..d1507a4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,8 +4,5 @@ "reportArgumentType": "information", "reportAttributeAccessIssue": "warning" }, - "cSpell.words": [ - "cakeday", - "cakedays" - ] -} \ No newline at end of file + "cSpell.words": ["cakeday", "cakedays", "cooldown", "nextcord"] +} diff --git a/off-cooldown-bot/settings.py b/off-cooldown-bot/settings.py index 809154e..43267ea 100644 --- a/off-cooldown-bot/settings.py +++ b/off-cooldown-bot/settings.py @@ -35,3 +35,7 @@ class Settings(YAMLWizard): settings = Settings.from_yaml_file(CONFIG_LOCATION) + +# I'm not expecting a list to be returned. +if isinstance(settings, list): + settings = settings[0]