This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new d2c0ecc17b3 Remove redundant exception handling in AWS hook (#54485)
d2c0ecc17b3 is described below

commit d2c0ecc17b300ca355a067e5655642baf5d63e3c
Author: Ramit Kataria <[email protected]>
AuthorDate: Fri Aug 15 14:03:01 2025 -0700

    Remove redundant exception handling in AWS hook (#54485)
    
    After #54299, there was a bit of except handling left over that appears
    to be redundant. It looks functionally equivalent to not having the
    additional handling.
---
 providers/amazon/src/airflow/providers/amazon/aws/hooks/base_aws.py | 2 --
 1 file changed, 2 deletions(-)

diff --git 
a/providers/amazon/src/airflow/providers/amazon/aws/hooks/base_aws.py 
b/providers/amazon/src/airflow/providers/amazon/aws/hooks/base_aws.py
index 256630855fb..b15c837ca30 100644
--- a/providers/amazon/src/airflow/providers/amazon/aws/hooks/base_aws.py
+++ b/providers/amazon/src/airflow/providers/amazon/aws/hooks/base_aws.py
@@ -621,8 +621,6 @@ class AwsGenericHook(BaseHook, Generic[BaseAwsConnection]):
                 self.log.warning(
                     "Unable to find AWS Connection ID '%s', switching to 
empty.", self.aws_conn_id
                 )
-            except Exception:
-                raise
 
         return AwsConnectionWrapper(
             conn=connection,

Reply via email to