New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forbid to use continue
in finally
#1082
Comments
Hi, could I take the issue? |
Sure! Feel free to ask for help. |
Hi! I am trying to run and write tests and have an error: |
Sure! It looks like a problem with your environment. Can you please post how exactly you run your tests? |
I tried to run tests from the project root by |
Two questions:
|
I was going the following way:
OS: Ubuntu 18.04 |
Looks strange. This should do the trick. Tow comments, however:
|
@Kvm99 can you please also test |
Please, also specify that this rule is related to |
I checked. |
We can combine them into one: |
Rule request
Thesis
This code is now allowed:
Why would you do that?
Putting any control statements in
finally
is a terrible practice.We should not allow it.
It was added in
python3.8
: https://www.python.org/downloads/release/python-381/The text was updated successfully, but these errors were encountered: