diff --git a/cosmos/config.py b/cosmos/config.py index f478a58bd..29b1c8463 100644 --- a/cosmos/config.py +++ b/cosmos/config.py @@ -244,8 +244,8 @@ def validate_project(self) -> None: if self.dbt_project_path: project_yml_path = self.dbt_project_path / "dbt_project.yml" mandatory_paths = { - "dbt_project.yml": project_yml_path else None, - "models directory ": self.models_path else None, + "dbt_project.yml": project_yml_path, + "models directory": self.models_path, } if self.manifest_path: mandatory_paths["manifest"] = self.manifest_path