Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Sep 30, 2024
1 parent 99bf7c0 commit 3aaaf9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def validate_profiles_yml(self) -> None:
raise CosmosValueError(f"The file {self.profiles_yml_filepath} does not exist.")

def get_profile_type(self) -> str:
if self.profile_mapping is not None and hasattr(self.profile_mapping, "dbt_profile_type"):
if isinstance(self.profile_mapping, BaseProfileMapping):
return str(self.profile_mapping.dbt_profile_type)

profile_path = self._get_profile_path()
Expand Down

0 comments on commit 3aaaf9e

Please sign in to comment.