better channel parse
This commit is contained in:
parent
8ee24fe256
commit
3780a3564f
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ def load(variables):
|
|||
for var in variables:
|
||||
try:
|
||||
res = environ[var]
|
||||
if var == "CHANNEL": # create a list
|
||||
res = res.split(',')
|
||||
if var == "CHANNEL":
|
||||
res = list(set(res.split(',')) - set([""])) # 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)")
|
||||
|
|
Loading…
Reference in a new issue