Fixed an error if warn level was not set

This commit is contained in:
Vegard Berg 2022-08-29 01:02:09 +02:00
parent d7a68d27f6
commit 9c8be82481
Signed by: myrkvi
GPG Key ID: BFE35EA1A44D5E40
1 changed files with 4 additions and 1 deletions

View File

@ -4,9 +4,12 @@ from os import getenv
from naff import (
Client,
Intents,
OptionTypes,
Permissions,
listen,
slash_command,
InteractionContext,
slash_option,
)
from naff.api import events
from naff.models.discord.embed import (
@ -124,7 +127,7 @@ async def bot_info_command(ctx: InteractionContext):
def set_loglevel(level: str):
loglevel = logging.WARNING
match level.lower():
match str(level).lower():
case "d", "debug":
loglevel = logging.DEBUG
case "i", "info", "information":