Add default value for bot_token
This commit is contained in:
@ -8,9 +8,11 @@ from dotenv import load_dotenv
|
||||
load_dotenv(verbose=True)
|
||||
sqlite_location = os.getenv("SQLITE_LOCATION", default="/jobs.sqlite")
|
||||
config_timezone = os.getenv("TIMEZONE", default="Europe/Stockholm")
|
||||
bot_token = os.getenv("BOT_TOKEN")
|
||||
bot_token = os.getenv("BOT_TOKEN", default="")
|
||||
log_level = os.getenv(key="LOG_LEVEL", default="INFO")
|
||||
|
||||
if not bot_token:
|
||||
raise ValueError("Missing bot token")
|
||||
|
||||
# Advanced Python Scheduler
|
||||
jobstores = {"default": SQLAlchemyJobStore(url=f"sqlite://{sqlite_location}")}
|
||||
|
Reference in New Issue
Block a user