Skip to content

Bug introduced with multiformat commit #29

@jikuja

Description

@jikuja

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions