Skip to content

Commit 79da24c

Browse files
author
Enrique Fernandez
committed
Check if topic types is None
1 parent b2f4d52 commit 79da24c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bag_tools/scripts/plot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ def get_topic_type(self, topic):
215215
# Get topic types:
216216
topic_types = self.get_topic_types()
217217

218+
if topic_types is None:
219+
return None, None, None, None
220+
218221
# Exact match first, followed by prefix match:
219222
matches = [(t, t_type) for t, t_type in topic_types if t == topic]
220223
if not matches:

0 commit comments

Comments
 (0)