From cdefd87d048253fe6fd5e819bc18abdf033b17bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Sch=C3=BCller?= Date: Tue, 15 Oct 2024 11:52:48 +0200 Subject: [PATCH] Temporary fix for non existing parent_uid bug --- nemoguardrails/colang/v2_x/runtime/statemachine.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nemoguardrails/colang/v2_x/runtime/statemachine.py b/nemoguardrails/colang/v2_x/runtime/statemachine.py index b24b40aa..bc4cdb19 100644 --- a/nemoguardrails/colang/v2_x/runtime/statemachine.py +++ b/nemoguardrails/colang/v2_x/runtime/statemachine.py @@ -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 )