fixed issue with reading boolean env var
This commit is contained in:
parent
a5eb297f1b
commit
9031cc90c9
@ -11,7 +11,7 @@ from pathlib import Path
|
||||
# it's important to load environment variables before
|
||||
# importing the modules that depend on them.
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
load_dotenv(override=True)
|
||||
|
||||
from bot import DiscordBot
|
||||
from logs import LogSetup
|
||||
@ -36,7 +36,7 @@ async def main():
|
||||
if not api_token:
|
||||
raise ValueError("API Token is empty")
|
||||
|
||||
developing = bool(getenv("DEVELOPING", False))
|
||||
developing = getenv("DEVELOPING", "False") == "True"
|
||||
|
||||
# Setup logging settings and mute spammy loggers
|
||||
logsetup = LogSetup(BASE_DIR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user