Skip to content

Commit

Permalink
Check for existent of result.node
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Mar 27, 2024
1 parent 75d3ee3 commit 771fade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/dbt/task/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def print_run_result_error(result, newline: bool = True, is_warning: bool = Fals
fire_event(Formatting(""))

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

0 comments on commit 771fade

Please sign in to comment.