Skip to content

Use contextlib.suppress instead of try-except-pass - #62156

Merged
jason810496 merged 1 commit into
apache:mainfrom
Eason09053360:Use_contextlib.suppress_instead_of_try_except_pass
Feb 19, 2026
Merged

jason810496 merged 1 commit into
apache:mainfrom
Eason09053360:Use_contextlib.suppress_instead_of_try_except_pass

Conversation

@Eason09053360

Copy link
Copy Markdown
Contributor

Use contextlib.suppress instead of try-except-pass

References here

Why:

I didn't think this was performance-critical code and using contextlib.suppress is more concise , so I made this change.

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 or {issue_number}.significant.rst, in airflow-core/newsfragments.

@jason810496
jason810496 merged commit 10cd08d into apache:main Feb 19, 2026
128 checks passed
dominikhei pushed a commit to dominikhei/airflow that referenced this pull request Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants