fix verbose bool

This commit is contained in:
Mylloon 2022-08-09 02:54:16 +02:00
parent eda6804d38
commit b83944959b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -15,7 +15,8 @@ def load(variables) -> dict:
try:
if var == "VERBOSE": # check is VERBOSE is set
try:
res = bool(environ[var])
if environ[var].lower() == "true":
res = True
except:
res = False # if not its False
elif var == "WHITELIST": # check if WHITELIST is set