Skip to content

Commit

Permalink
check existence of node attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Mar 27, 2024
1 parent 771fade commit 9b990d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/task/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def print_run_result_error(result, newline: bool = True, is_warning: bool = Fals

# set node_info for logging events
node_info = None
if result.node:
if hasattr(result, "node") and result.node:
node_info = result.node.node_info
if result.status == NodeStatus.Fail or (is_warning and result.status == NodeStatus.Warn):
if is_warning:
Expand Down

0 comments on commit 9b990d9

Please sign in to comment.