Skip to content

Commit

Permalink
Skip printing adapter response if its empty (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsimsek authored Dec 2, 2024
1 parent b91ffae commit 85a255d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opendbt/dbt/v17/task/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class ModelRunner(run.ModelRunner):

def print_result_adapter_response(self, result):
if hasattr(result, 'adapter_response'):
if hasattr(result, 'adapter_response') and result.adapter_response:
if result.status == NodeStatus.Error:
status = result.status
level = EventLevel.ERROR
Expand Down
2 changes: 1 addition & 1 deletion opendbt/dbt/v18/task/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class ModelRunner(run.ModelRunner):

def print_result_adapter_response(self, result):
if hasattr(result, 'adapter_response'):
if hasattr(result, 'adapter_response') and result.adapter_response:
if result.status == NodeStatus.Error:
status = result.status
level = EventLevel.ERROR
Expand Down

0 comments on commit 85a255d

Please sign in to comment.