Ignore error

This commit is contained in:
Mylloon 2021-08-10 09:50:06 +02:00
parent 0bf4f6315c
commit 1a8b262254

View file

@ -171,12 +171,13 @@ def load(variables):
load_dotenv() # load .env file
for var in variables:
try:
res = environ[var]
if var == "DOCKER_KASSOUBOT": # check is VERBOSE is set
try:
res = bool(environ[var])
except:
res = False # if not its False
else:
res = environ[var]
if var == "DEACTIVATE":
res = list(set(res.split(',')) - {""}) # create a list for the cogs we need to deactivate and remove blank channels and doubles
keys[var] = res