diff --git a/dbt/adapters/athena/session.py b/dbt/adapters/athena/session.py index b6185974..c28ab00a 100644 --- a/dbt/adapters/athena/session.py +++ b/dbt/adapters/athena/session.py @@ -2,10 +2,7 @@ from dbt.contracts.connection import Connection -def get_boto3_session(connection: Connection = None) -> boto3.session.Session: - if connection is None: - raise RuntimeError("A Connection object needs to be passed to initialize the boto3 session") - +def get_boto3_session(connection: Connection) -> boto3.session.Session: return boto3.session.Session( region_name=connection.credentials.region_name, profile_name=connection.credentials.aws_profile_name,