Skip to content

Commit

Permalink
replace logger.warning with warn_or_error (#4019)
Browse files Browse the repository at this point in the history
Uses `warn_or_error` to log _or_ raise errors depending on arguments
passed.

automatic commit by git-black, original commits:
  47033c4
  • Loading branch information
laxjesse authored and iknox-fa committed Feb 8, 2022
1 parent 4bc8452 commit 0295dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/task/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _iterate_selected_nodes(self):
spec = self.get_selection_spec()
nodes = sorted(selector.get_selected(spec))
if not nodes:
warn_or_error('No nodes selected!')
warn_or_error("No nodes selected!")
return
if self.manifest is None:
raise InternalException("manifest is None in _iterate_selected_nodes")
Expand Down

0 comments on commit 0295dcd

Please sign in to comment.