Make sure self.lhs/rhslist are always lists. Resolve #2290

This commit is contained in:
Griatch 2021-01-18 22:08:11 +01:00
parent 0a6236904b
commit a99729684e

View file

@ -175,8 +175,8 @@ class MuxCommand(Command):
rhs = rhs.strip() if rhs is not None else None
lhs = lhs.strip()
# Further split left/right sides by comma delimiter
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 ""
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 []
# save to object properties:
self.raw = raw
self.switches = switches