Fix updater

This commit is contained in:
yasir 2023-03-02 21:51:50 +07:00
parent 3f384ec8b4
commit e0ed2e39e3

View file

@ -21,7 +21,7 @@ try:
# MongoDB information
DATABASE_URI = getConfig("DATABASE_URI")
DATABASE_NAME = getConfig("DATABASE_NAME")
LOG_CHANNEL = int(getConfig("LOG_CHANNEL"))
LOG_CHANNEL = int(environ.get("LOG_CHANNEL", 0))
USER_SESSION = getConfig("USER_SESSION")
except Exception as e:
LOGGER.error(f"One or more env variables missing! Exiting now.\n{e}")