This commit is contained in:
Sem van der Hoeven
2023-05-25 17:10:25 +02:00
parent 3e02699c9d
commit 93c78b1db3

View File

@@ -122,7 +122,7 @@ class ApiListener(Node):
try:
message_json = json.loads(str(message))
self.get_logger().info(f'JSON: {message_json}, type:{type(message_json)}}')
if not message_json["'command'"]:
if not message_json["command"]:
self.get_logger().error('Received message without command')
self.send_available_commands()
else: