Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhoune committed Jan 5, 2024
1 parent a882f9b commit 4731dca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/bot/parse_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ def extract_state_label_new(node):
"""
Extracts the state label from a node.
"""
if node is None:
return None
if node['type'] == 'Incoming Message':
return node['label']['value']['value'] if node['label'] is not None else None
elif node['type'] == 'Bot Action':
Expand Down

0 comments on commit 4731dca

Please sign in to comment.