ashb commented on code in PR #54084:
URL: https://github.com/apache/airflow/pull/54084#discussion_r2251040097


##########
airflow-core/src/airflow/utils/email.py:
##########
@@ -246,9 +246,9 @@ def send_mime_email(
 
     if conn_id is not None:
         try:
-            from airflow.sdk import BaseHook
+            from airflow.models import Connection
 
-            airflow_conn = BaseHook.get_connection(conn_id)
+            airflow_conn = Connection.get_connection_from_secrets(conn_id)

Review Comment:
   This still looks at secrets backend etc, right? If so :+1:



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to