Skip to content

Commit 6e7938d

Browse files
Minor bot token handling fix
1 parent d0b54e5 commit 6e7938d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _setup_logging() -> None:
158158

159159
@classmethod
160160
def _setup_discord_bot_token(cls) -> None:
161-
raw_discord_bot_token: str | None = os.getenv("DISCORD_BOT_TOKEN")
161+
raw_discord_bot_token: str | None = os.getenv("DISCORD_BOT_TOKEN", default="").strip()
162162

163163
DISCORD_BOT_TOKEN_IS_VALID: Final[bool] = bool(
164164
raw_discord_bot_token

0 commit comments

Comments
 (0)