Fixed an error if warn level was not set
This commit is contained in:
parent
d7a68d27f6
commit
9c8be82481
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue