This commit is contained in:
Mylloon 2021-07-27 20:58:03 +02:00
parent 3780a3564f
commit 912bf6516c

View file

@ -10,7 +10,7 @@ def load(variables):
try:
res = environ[var]
if var == "CHANNEL":
res = list(set(res.split(',')) - set([""])) # create a list for the channels and remove blank channels
res = list(set(res.split(',')) - {""}) # create a list for the channels and remove blank channels
keys[var] = res
except KeyError:
print(f"Please set the environment variable {var} (.env file supported)")