fix: replace 4 bare except clauses with except Exception by haosenwang1018 · Pull Request #3322 · apache/thrift

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@haosenwang1018

Copy link

Contributor

Replace bare except clauses with except Exception.

@Jens-G

Copy link

Member

Jens-G commented

Mar 5, 2026

edited

Loading

Reference https://peps.python.org/pep-0760/

Would be nice if I would not have to do this for you next time. And, by the way, this PEP was withdrawn (reasons outlined there). Do we have any other justifications for such a change?

@Jens-G Jens-G added the python label

Mar 5, 2026

@Jens-G

Copy link

Member

Jens-G commented

Mar 5, 2026

Oh it's contrib stuff ...

@Jens-G Jens-G merged commit 7e06eb8 into apache:master

Mar 5, 2026

79 checks passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@haosenwang1018 @Jens-G