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
|
load_dotenv() # load .env file
|
||||||
for var in variables:
|
for var in variables:
|
||||||
try:
|
try:
|
||||||
res = environ[var]
|
|
||||||
if var == "DOCKER_KASSOUBOT": # check is VERBOSE is set
|
if var == "DOCKER_KASSOUBOT": # check is VERBOSE is set
|
||||||
try:
|
try:
|
||||||
res = bool(environ[var])
|
res = bool(environ[var])
|
||||||
except:
|
except:
|
||||||
res = False # if not its False
|
res = False # if not its False
|
||||||
|
else:
|
||||||
|
res = environ[var]
|
||||||
if var == "DEACTIVATE":
|
if var == "DEACTIVATE":
|
||||||
res = list(set(res.split(',')) - {""}) # create a list for the cogs we need to deactivate and remove blank channels and doubles
|
res = list(set(res.split(',')) - {""}) # create a list for the cogs we need to deactivate and remove blank channels and doubles
|
||||||
keys[var] = res
|
keys[var] = res
|
||||||
|
|
Reference in a new issue