From c8a7ba4c0605ccf18b7102ee8e162673781b2504 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Wed, 9 Mar 2022 17:11:59 +0100 Subject: [PATCH] fix: define execution_info outside conditionals (#162) --- src/qrules/transition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qrules/transition.py b/src/qrules/transition.py index d0f3e96c..8e42a3cb 100644 --- a/src/qrules/transition.py +++ b/src/qrules/transition.py @@ -612,11 +612,11 @@ def find_solutions( # pylint: disable=too-many-branches self.filter_ignore_qns, ) + execution_info = final_result.execution_info if ( final_result.execution_info.violated_edge_rules or final_result.execution_info.violated_node_rules ): - execution_info = final_result.execution_info violated_rules: Set[str] = set() for rules in execution_info.violated_edge_rules.values(): violated_rules |= rules