Skip to content

fix: replace 15 bare except clauses with except Exception - #4407

Closed
haosenwang1018 wants to merge 1 commit into
coqui-ai:devfrom
haosenwang1018:fix/bare-excepts
Closed

fix: replace 15 bare except clauses with except Exception#4407
haosenwang1018 wants to merge 1 commit into
coqui-ai:devfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018

Copy link
Copy Markdown

What

Replace 15 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.

Bare `except:` catches BaseException including KeyboardInterrupt and
SystemExit. Replaced 15 instances with `except Exception:`.
@CLAassistant

Copy link
Copy Markdown

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.

@eginhard

Copy link
Copy Markdown
Contributor

Thank you for the PR! This repo is not maintained anymore. Feel free to send the PR to our fork instead where I can merge it.

@haosenwang1018

Copy link
Copy Markdown
Author

CI failures. Closing for rework.

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.

3 participants