diff --git a/core/dbt/config/profile.py b/core/dbt/config/profile.py index 5b9a4506916..4641f1f0ccb 100644 --- a/core/dbt/config/profile.py +++ b/core/dbt/config/profile.py @@ -389,13 +389,7 @@ def from_raw_profiles( if not raw_profile: msg = f"Profile {profile_name} in profiles.yml is empty" raise DbtProfileError(INVALID_PROFILE_MESSAGE.format(error_string=msg)) - ) - raise DbtProfileError( - INVALID_PROFILE_MESSAGE.format( - error_string=msg - ) - ) - user_config = raw_profiles.get('config') + user_config = raw_profiles.get("config") return cls.from_raw_profile_info( raw_profile=raw_profile,