Update vars.py

This commit is contained in:
yasirarism 2023-08-04 12:22:50 +07:00 committed by GitHub
parent 1a3350722f
commit 7c3706cda7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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