Skip to content

[v3-3-test] Remove no-op ServerResponseError re-raise blocks in airflowctl operations - #70460

Merged
henry3260 merged 1 commit into
apache:v3-3-testfrom
henry3260:backport-70376-v3-3-test
Jul 26, 2026
Merged

[v3-3-test] Remove no-op ServerResponseError re-raise blocks in airflowctl operations#70460
henry3260 merged 1 commit into
apache:v3-3-testfrom
henry3260:backport-70376-v3-3-test

Conversation

@henry3260

Copy link
Copy Markdown
Contributor

(cherry picked from commit fba10d4)


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

…ions (apache#70376)

* Remove no-op ServerResponseError re-raise blocks in airflowctl operations

Every operation wrapped its request in a try/except that caught
ServerResponseError only to re-raise it unchanged. The error is already
raised by the client's raise_on_4xx_5xx response hook, so these wrappers
added no behavior and only obscured the request logic. Dropping them
leaves the propagation semantics identical while making each operation a
plain request/parse.

* Update airflow-ctl/src/airflowctl/api/operations.py

Co-authored-by: Henry Chen <henryhenry0512@gmail.com>

* Update airflow-ctl/src/airflowctl/api/operations.py

Co-authored-by: Henry Chen <henryhenry0512@gmail.com>

* Update airflow-ctl/src/airflowctl/api/operations.py

Co-authored-by: Henry Chen <henryhenry0512@gmail.com>

---------

Co-authored-by: Henry Chen <henryhenry0512@gmail.com>
(cherry picked from commit fba10d4)
@henry3260
henry3260 merged commit d92f5ed into apache:v3-3-test Jul 26, 2026
92 checks passed
@github-actions github-actions Bot added this to the Airflow 3.3.1 milestone Jul 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.3.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

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.

3 participants