CorentinJ / Real-Time-Voice-Cloning

Clone a voice in 5 seconds to generate arbitrary speech in real-time
Other
52.84k stars 8.8k forks source link

Ensure bare exception statements are raised #1292

Closed pixeeai closed 1 day ago

pixeeai commented 8 months ago

This codemod fixes cases where an exception is referenced by itself in a statement without being raised. This most likely indicates a bug: you probably meant to actually raise the exception.

Our changes look something like this:

try:
-   ValueError
+   raise ValueError
except:
    pass
More reading * [https://docs.python.org/3/tutorial/errors.html#raising-exceptions](https://docs.python.org/3/tutorial/errors.html#raising-exceptions)

Powered by: pixeebot (codemod ID: pixee:python/exception-without-raise)

pixeeai commented 8 months ago

FYI - This change was autogenerated from a new trending GitHub app - called Pixeebot. A code-quality GitHub App; like Dependabot, but for source code. (Free for Open Source Projects 👍)

pixeeai commented 4 months ago

@CorentinJ any thoughts on this change request?

pixeeai commented 3 weeks ago

Any chance you've had the time to review these changes?

If you're not interested implementing them at this time, no worries. I can close the PR and follow back with additional changes in the future. Also, this plugin is free for non-commercial open sourced projects, so feel free to give it an install if you want to see the other recommended PRs.

Thanks, Zach