ephraimbuddy commented on code in PR #54505:
URL: https://github.com/apache/airflow/pull/54505#discussion_r2477856351
##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -355,15 +353,13 @@ def __eq__(self, other):
return True
def get(self, conn_id: str, default_conn: Any = None) -> Any:
- from airflow.exceptions import AirflowNotFoundException
-
try:
return _get_connection(conn_id)
except AirflowRuntimeError as e:
if e.error.error == ErrorType.CONNECTION_NOT_FOUND:
return default_conn
raise
- except AirflowNotFoundException:
+ except RuntimeError:
Review Comment:
Fixed
--
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]