Fix test guild parsing for empty strings

pull/91/head
Stijn De Clercq 2021-09-05 16:22:28 +02:00
parent 5e946ed5d3
commit 1c82bf959b
1 changed files with 2 additions and 5 deletions

View File

@ -36,8 +36,5 @@ STATUS_MESSAGE = os.getenv("STATUSMESSAGE", "with your Didier Dinks.")
# Guilds to test slash commands in
# Ex: 123,456,789
SLASH_TEST_GUILDS: List[int] = list(
map(lambda x: int(x),
os.getenv("SLASHTESTGUILDS", "").replace(" ", "").split(",")
)
)
_guilds = os.getenv("SLASHTESTGUILDS", "").replace(" ", "")
SLASH_TEST_GUILDS: List[int] = list(map(lambda x: int(x), _guilds.split(","))) if _guilds else []