Skip to content

fix: replace 207 bare except clauses with except Exception#11214

Closed
haosenwang1018 wants to merge 1 commit intoPaddlePaddle:developfrom
haosenwang1018:fix/bare-excepts
Closed

fix: replace 207 bare except clauses with except Exception#11214
haosenwang1018 wants to merge 1 commit intoPaddlePaddle:developfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018
Copy link

What

Replace 207 bare except: clauses with except Exception:.

Why

Bare except: catches BaseException, including KeyboardInterrupt and SystemExit, which can prevent clean process shutdown and mask critical errors. Using except Exception: catches all application-level errors while allowing system-level exceptions to propagate correctly.

@paddle-bot
Copy link

paddle-bot bot commented Feb 25, 2026

Thanks for your contribution!

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@haosenwang1018
Copy link
Author

CI failures require manual fix. Closing per policy.

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.

2 participants