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:
|
for var in variables:
|
||||||
try:
|
try:
|
||||||
res = environ[var]
|
res = environ[var]
|
||||||
if var == "CHANNEL": # create a list
|
if var == "CHANNEL":
|
||||||
res = res.split(',')
|
res = list(set(res.split(',')) - set([""])) # create a list for the channels and remove blank channels
|
||||||
keys[var] = res
|
keys[var] = res
|
||||||
except KeyError:
|
except KeyError:
|
||||||
print(f"Please set the environment variable {var} (.env file supported)")
|
print(f"Please set the environment variable {var} (.env file supported)")
|
||||||
|
|
Loading…
Reference in a new issue