Skip to content

fix suppressible-exception#62312

Open
Eason09053360 wants to merge 1 commit intoapache:mainfrom
Eason09053360:105_variable
Open

fix suppressible-exception#62312
Eason09053360 wants to merge 1 commit intoapache:mainfrom
Eason09053360:105_variable

Conversation

@Eason09053360
Copy link
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.

@Eason09053360 Eason09053360 marked this pull request as ready for review February 23, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant