Skip to content

Commit

Permalink
Move initialization of keyword_args up
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Jan 6, 2025
1 parent 0bf38ce commit 5429c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/graph/selector_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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",
Expand Down

0 comments on commit 5429c22

Please sign in to comment.