eranhermush opened a new pull request, #77180: URL: https://github.com/apache/airflow/pull/77180
`TrinoHook.get_conn()` raised the generic `AirflowException` when a connection configures more than one authentication method. That is an invalid connection setting, so it now raises `ValueError`, in line with the ongoing effort to replace direct `AirflowException` raises with specific exceptions. The `generated/known_airflow_exceptions.txt` allowlist entry for the hook is removed accordingly. Checks run locally: - `uv run --project providers/trino pytest providers/trino/tests/unit/trino/hooks/test_trino.py`: 42 passed - `test_get_conn_invalid_auth` fails without the hook change and passes with it - `prek` pre-commit hooks on the changed files pass (Breeze-based hooks were skipped as Breeze is not installed locally) --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 5.5) Generated-by: Claude Code (Opus 5.5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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]
