Skip to content

Commit a407e4c

Browse files
committed
Remove init from async hook
1 parent 4dd2f17 commit a407e4c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

airflow/providers/amazon/aws/hooks/base_aws.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
from airflow.exceptions import (
5555
AirflowException,
5656
AirflowNotFoundException,
57-
AirflowOptionalProviderFeatureException,
5857
)
5958
from airflow.hooks.base import BaseHook
6059
from airflow.providers.amazon.aws.utils.connection_wrapper import AwsConnectionWrapper
@@ -990,15 +989,6 @@ class AwsBaseAsyncHook(AwsBaseHook):
990989
:param config: Configuration for botocore client.
991990
"""
992991

993-
def __init__(self, **kwargs) -> None:
994-
try:
995-
import aiobotocore
996-
except ImportError:
997-
raise AirflowOptionalProviderFeatureException(
998-
"AWS deferrable operator feature is disable. To enable it please install aiobotocore>=2.1.1"
999-
)
1000-
super().__init__(**kwargs)
1001-
1002992
def get_async_session(self) -> AioSession:
1003993
"""Get the underlying aiobotocore.session.AioSession(...)."""
1004994
return BaseAsyncSessionFactory(

0 commit comments

Comments
 (0)