Skip to content

Commit

Permalink
Fix: _process_trace_node_include(): type property is optional here
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ic0ce65189091fb892c6160256845701a51fa9863
  • Loading branch information
eepp committed Nov 21, 2022
1 parent 67ac63a commit 779a52d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion barectf/config_parse_v3.py
Expand Up @@ -1230,7 +1230,9 @@ def process_children_include(trace_type_node: _MapNode):
def _process_trace_node_include(self, trace_node: _MapNode) -> _MapNode:
def process_children_include(trace_node: _MapNode):
prop_name = 'type'
trace_node[prop_name] = self._process_trace_type_node_include(trace_node[prop_name])

if prop_name in trace_node:
trace_node[prop_name] = self._process_trace_type_node_include(trace_node[prop_name])

# Make sure the trace node is valid for the inclusion processing
# stage.
Expand Down

0 comments on commit 779a52d

Please sign in to comment.