Skip to content

Commit

Permalink
fix: define execution_info outside conditionals (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Apr 5, 2023
1 parent c0da014 commit c8a7ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qrules/transition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8a7ba4

Please sign in to comment.