diff --git a/airflow_dbt_python/hooks/dbt.py b/airflow_dbt_python/hooks/dbt.py index a70f9bb..c77a94b 100644 --- a/airflow_dbt_python/hooks/dbt.py +++ b/airflow_dbt_python/hooks/dbt.py @@ -389,6 +389,10 @@ def create_dbt_profile( if self.profiles_dir is not None: raw_profiles = read_profile(self.profiles_dir) else: + profiles_path = Path.home() / ".dbt/profiles.yml" + if not profiles_path.exists(): + profiles_path.parent.mkdir(exist_ok=True) + profiles_path.touch() raw_profiles = {} if extra_targets: