Bug introduced with multiformat commit
jikuja opened this issue · comments
Janne Kujanpää commented
Commit 13d43cf introduced a new bug: format argument can not be None anymore. Changing None to "" made my code work. Fixes: fix code or update documentation
ERROR:CmdEvents:Traceback (most recent call last):
File "E:\projects\iot\iot-project\gateway\CmdEvents\CmdEvents.py", line 25, in run
message = self.cmdMessenger.receive()
File "E:\projects\iot\iot-project\gateway\PyCmdMessenger\PyCmdMessenger.py", line 280, in receive
arg_format_list = self._treat_star_format(arg_format_list,fields[1:])
File "E:\projects\iot\iot-project\gateway\PyCmdMessenger\PyCmdMessenger.py", line 306, in _treat_star_format
num_stars = len([a for a in arg_format_list if a == "*"])
TypeError: 'NoneType' object is not iterable