Skip to content

Commit

Permalink
Merge pull request dbt-labs#146 from nicholasyager/nicholasyager-fix/…
Browse files Browse the repository at this point in the history
…none_change_sets

fix: Connecting disjoint projects does not raise NoneType error
  • Loading branch information
dave-connors-3 authored Aug 22, 2023
2 parents 3c1c9b2 + b31d6d2 commit ee837fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dbt_meshify/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def operation():
@read_catalog
def connect(
project_paths: tuple, projects_dir: Path, exclude_projects: List[str], read_catalog: bool
):
) -> List[ChangeSet]:
"""
Connects multiple dbt projects together by adding all necessary dbt Mesh constructs
"""
Expand Down Expand Up @@ -164,8 +164,8 @@ def connect(
)
all_dependencies.update(dependencies)
if len(all_dependencies) == 0:
logger.info("No dependencies found between any of the projects")
return
logger.warning("No dependencies found between any of the projects")
return []

noun = "dependency" if len(all_dependencies) == 1 else "dependencies"
logger.info(f"Found {len(all_dependencies)} unique {noun} between all projects.")
Expand Down

0 comments on commit ee837fd

Please sign in to comment.