Skip to content

Commit

Permalink
sdp: remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Jan 6, 2025
1 parent 05ffadf commit 63d6b9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/model/sdp/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@ def _parse_commands(self, commands, cmds=None):

# sanitize patterns if not stored as list
if CMD_ATTR_REPLY_PATTERN in cmd_dict and not isinstance(cmd_dict[CMD_ATTR_REPLY_PATTERN], list):
self.logger.warning(f'error reading commands.py: for {cmd}, reply_patterns should be a list, is {type(cmd_dict[CMD_ATTR_REPLY_PATTERN])}. Please fix.')
# reply_pattern can be supplied as list or str, so don't warn...
# self.logger.warning(f'error reading commands.py: for {cmd}, reply_patterns should be a list, is {type(cmd_dict[CMD_ATTR_REPLY_PATTERN])}. Please fix.')
cmd_dict[CMD_ATTR_REPLY_PATTERN] = [cmd_dict[CMD_ATTR_REPLY_PATTERN]]

# update with command attributes
Expand Down

0 comments on commit 63d6b9d

Please sign in to comment.