changed seperator for door token file to support whitespaces in names etc.
This commit is contained in:
parent
2efc2343b6
commit
4ac7e46ca8
2
door.py
2
door.py
|
@ -78,7 +78,7 @@ def read_valid_tokens():
|
||||||
valid = {}
|
valid = {}
|
||||||
lines =[ s.strip() for s in open(config.valid_tokens, "r").readlines() ]
|
lines =[ s.strip() for s in open(config.valid_tokens, "r").readlines() ]
|
||||||
for l in lines:
|
for l in lines:
|
||||||
l = l.split(' ', 1)
|
l = l.split('|', 1)
|
||||||
if len(l) > 1:
|
if len(l) > 1:
|
||||||
if l[0] in valid:
|
if l[0] in valid:
|
||||||
log("Warning: Overwriting token %s" % (l[0],))
|
log("Warning: Overwriting token %s" % (l[0],))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user