Skip to content

Commit

Permalink
msgproto: Fix return type for create_command()
Browse files Browse the repository at this point in the history
Return an empty list instead of an emptry string if no command found.
This improves compatibility within console.py on python3.

Signed-off-by: Kevin O'Connor <[email protected]>
  • Loading branch information
KevinOConnor committed Nov 13, 2024
1 parent 38bf6f2 commit c88ee84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/msgproto.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def lookup_msgid(self, msgformat):
def create_command(self, msg):
parts = msg.strip().split()
if not parts:
return ""
return []
msgname = parts[0]
mp = self.messages_by_name.get(msgname)
if mp is None:
Expand Down

0 comments on commit c88ee84

Please sign in to comment.