Skip to content

Commit

Permalink
Temporary fix for non existing parent_uid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
schuellc-nvidia committed Oct 18, 2024
1 parent c038b08 commit cdefd87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nemoguardrails/colang/v2_x/runtime/statemachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -2422,5 +2422,7 @@ def _is_child_activated_flow(state: State, flow_state: FlowState) -> bool:
return (
flow_state.activated > 0
and flow_state.parent_uid is not None
and flow_state.parent_uid
in state.flow_states # TODO: Figure out why this can fail sometimes
and flow_state.flow_id == state.flow_states[flow_state.parent_uid].flow_id
)

0 comments on commit cdefd87

Please sign in to comment.