Ignore error
This commit is contained in:
parent
0bf4f6315c
commit
1a8b262254
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue