From 5429c22a6b9b8ded2f6869b684427e15921b6384 Mon Sep 17 00:00:00 2001 From: Gerda Shank Date: Mon, 6 Jan 2025 13:06:44 -0500 Subject: [PATCH] Move initialization of keyword_args up --- core/dbt/graph/selector_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dbt/graph/selector_methods.py b/core/dbt/graph/selector_methods.py index 3a774042b8d..41a9cc0d51c 100644 --- a/core/dbt/graph/selector_methods.py +++ b/core/dbt/graph/selector_methods.py @@ -769,6 +769,7 @@ def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[Uniqu manifest: Manifest = self.previous_state.manifest + keyword_args = {} # initialize here to handle disabled node check below for unique_id, node in self.all_nodes(included_nodes): previous_node: Optional[SelectorTarget] = None @@ -787,7 +788,6 @@ def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[Uniqu elif unique_id in manifest.saved_queries: previous_node = SavedQuery.from_resource(manifest.saved_queries[unique_id]) - keyword_args = {} if checker.__name__ in [ "same_contract", "check_modified_content",