diff --git a/common/autoware_debug_tools/autoware_debug_tools/topic_connection_checker/topic_connection_checker_node.py b/common/autoware_debug_tools/autoware_debug_tools/topic_connection_checker/topic_connection_checker_node.py index f934ce5f..f2dea8e4 100644 --- a/common/autoware_debug_tools/autoware_debug_tools/topic_connection_checker/topic_connection_checker_node.py +++ b/common/autoware_debug_tools/autoware_debug_tools/topic_connection_checker/topic_connection_checker_node.py @@ -33,9 +33,7 @@ def __init__(self): "/diagnostics", ] - self.ignore_nodes = [ - "rviz2" - ] + self.ignore_nodes = ["rviz2"] self.topic_data = {} self.lock = threading.Lock() @@ -172,7 +170,9 @@ def finish_check(self): publishers_info = self.get_publishers_info_by_topic(topic) with self.lock: self.topic_data[topic]["publishers"] = [ - (p.node_name, p.node_namespace) for p in publishers_info if p.node_name not in self.ignore_nodes + (p.node_name, p.node_namespace) + for p in publishers_info + if p.node_name not in self.ignore_nodes ] self.check_completed.set()