Gatau napa error kalo env url

This commit is contained in:
yasirarism 2023-08-04 07:13:12 +07:00 committed by GitHub
parent 0d1a16c824
commit d45c8f2cea
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")
# MongoDB information
DATABASE_URI = getConfig("DATABASE_URI")
LOG_CHANNEL = int(environ.get("LOG_CHANNEL"))
LOG_CHANNEL = environ.get("LOG_CHANNEL")
except Exception as e:
LOGGER.error(f"One or more env variables missing! Exiting now.\n{e}")
sys.exit(1)