Skip to content

Use ValueError for conflicting Git connection key arguments - #70538

Open
mitre88 wants to merge 1 commit into
apache:mainfrom
mitre88:narrow-git-hook-exception
Open

Use ValueError for conflicting Git connection key arguments#70538
mitre88 wants to merge 1 commit into
apache:mainfrom
mitre88:narrow-git-hook-exception

Conversation

@mitre88

@mitre88 mitre88 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Part of the ongoing clean-up of broad AirflowException usages (enforced by the check-no-new-airflow-exceptions ratchet), following the pattern of #66279.

GitHook raised AirflowException when a connection provides both key_file and private_key — a plain input-validation conflict, now a ValueError. The known_airflow_exceptions.txt entry for the file drops from 1 to 0, and the existing test asserts the new type.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5)

Generated-by: Claude Code (Fable 5) following the guidelines

Providing both key_file and private_key is an input-validation error,
so it should not raise the broad AirflowException the community is
actively reducing. Follows the clean-up pattern of apache#66279.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant