From 0295dcd41b32418be521433dd8d5c503397359ff Mon Sep 17 00:00:00 2001 From: Jesse Lax Date: Fri, 8 Oct 2021 10:51:08 -0400 Subject: [PATCH] replace `logger.warning` with `warn_or_error` (#4019) Uses `warn_or_error` to log _or_ raise errors depending on arguments passed. automatic commit by git-black, original commits: 47033c459f2c835d81cc845d49ef23e7d19736b6 --- core/dbt/task/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dbt/task/list.py b/core/dbt/task/list.py index de8ff81ae0e..a66f2163b9f 100644 --- a/core/dbt/task/list.py +++ b/core/dbt/task/list.py @@ -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")