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


##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -101,8 +102,15 @@
 T = TypeVar("T")
 
 
-def _convert_connection_result_conn(conn_result: ConnectionResult) -> 
Connection:
+def _process_connection_result_conn(conn_result: ReceiveMsgType | None) -> 
Connection:
     from airflow.sdk.definitions.connection import Connection
+    from airflow.sdk.execution_time.comms import ErrorResponse
+
+    if isinstance(conn_result, ErrorResponse):
+        raise AirflowRuntimeError(conn_result)

Review Comment:
   ```suggestion
           raise TypeError(conn_result)
   ```



-- 
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