Make sure self.lhs/rhslist are always lists. Resolve #2290
This commit is contained in:
parent
0a6236904b
commit
a99729684e
1 changed files with 2 additions and 2 deletions
|
|
@ -175,8 +175,8 @@ class MuxCommand(Command):
|
||||||
rhs = rhs.strip() if rhs is not None else None
|
rhs = rhs.strip() if rhs is not None else None
|
||||||
lhs = lhs.strip()
|
lhs = lhs.strip()
|
||||||
# Further split left/right sides by comma delimiter
|
# Further split left/right sides by comma delimiter
|
||||||
lhslist = [arg.strip() for arg in lhs.split(",")] if lhs is not None else ""
|
lhslist = [arg.strip() for arg in lhs.split(",")] if lhs is not None else []
|
||||||
rhslist = [arg.strip() for arg in rhs.split(",")] if rhs is not None else ""
|
rhslist = [arg.strip() for arg in rhs.split(",")] if rhs is not None else []
|
||||||
# save to object properties:
|
# save to object properties:
|
||||||
self.raw = raw
|
self.raw = raw
|
||||||
self.switches = switches
|
self.switches = switches
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue