Skip to content

fix: replace 64 bare except clauses with except Exception#4832

Closed
haosenwang1018 wants to merge 1 commit intoSCons:masterfrom
haosenwang1018:fix/bare-excepts
Closed

fix: replace 64 bare except clauses with except Exception#4832
haosenwang1018 wants to merge 1 commit intoSCons:masterfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018
Copy link

Replace bare except: clauses with except Exception: for PEP 8 compliance. Bare except catches SystemExit, KeyboardInterrupt, and GeneratorExit which is rarely intended.

@bdbaddog
Copy link
Contributor

Looks like you didn't try to run the test suite on your changes before committing them.
Please take a look at the test failures and revise your changes.

Note that catching SystemExit, KeyboardInterrupt, and GeneratorExit is indeed sometimes the intention in the code which failed during testing.

@haosenwang1018
Copy link
Author

CI failures require manual fix. Closing for now.

@bdbaddog
Copy link
Contributor

If you submit PRs generated by AI, please include that information in your PR.
Which AI you used as well as that you used one.

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.

2 participants