Skip to content

Commit

Permalink
Simplify logic now that we have a namespace object for self.config.args.
Browse files Browse the repository at this point in the history
  • Loading branch information
VersusFacit committed Jan 20, 2023
1 parent c8e03eb commit f0c5f5b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/dbt/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,8 @@ def compile(self, manifest: Manifest, write=True, add_test_edges=False) -> Graph
if write:
self.write_graph_file(linker, manifest)

# Only in the case the object is specifically a ListTask do we avoid printing these stats.
try:
if not isinstance(self.config.args.get("cls", None), list_task.ListTask):
print_compile_stats(stats)
except AttributeError:
# Do not print these for ListTask's
if not self.config.args.cls == list_task.ListTask:
print_compile_stats(stats)

return Graph(linker.graph)
Expand Down

0 comments on commit f0c5f5b

Please sign in to comment.