Skip to content

Commit

Permalink
Fix none group case
Browse files Browse the repository at this point in the history
  • Loading branch information
heysweet committed Mar 24, 2024
1 parent 8dd90fe commit b14ec65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/dbt/graph/selector_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ class GroupSelectorMethod(SelectorMethod):
def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[UniqueId]:
"""yields nodes from included in the specified group"""
for node, real_node in self.groupable_nodes(included_nodes):
if fnmatch(selector, real_node.config.get("group")):
node_group = real_node.config.get("group")
if node_group and fnmatch(selector, node_group):
yield node


Expand Down

0 comments on commit b14ec65

Please sign in to comment.