CorentinJ / Real-Time-Voice-Cloning

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

Ensure bare exception statements are raised #1292

Open pixeeai opened 6 months ago

pixeeai commented 6 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 6 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 2 months ago

@CorentinJ any thoughts on this change request?