Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
Fix error when no guild ids were provided
Browse files Browse the repository at this point in the history
  • Loading branch information
norinorin committed Dec 29, 2021
1 parent 090777b commit afade7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nokari/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,8 @@ def format_(s_: str, fmt: FieldType) -> str:


LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO")
GUILD_IDS = {int(i) for i in os.getenv("GUILD_IDS", "").split(",")}
GUILD_IDS = (
{int(i.strip()) for i in os.getenv("GUILD_IDS", "").split(",")}
if (RAW_GUILD_IDS := os.getenv("GUILD_IDS", ""))
else None
)

0 comments on commit afade7b

Please sign in to comment.