We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given this code
try: something except Exception as err: try: something else except Exception as err: handle print(err)
Depending on whether the second except triggers, err will be undefined in the print statement.
except
err
Pylint should probably catch this and suggest to rename one of the err variables.
No response
The text was updated successfully, but these errors were encountered:
Good candidate for redefined-outer-name.
redefined-outer-name
Sorry, something went wrong.
Fix pylint-dev#5370: Emit redefined-outer-name when a nested except…
2b27048
… handler shadows an outer one.
Fix #5370: Emit redefined-outer-name when a nested except handler s…
619d853
…hadows an outer one (#5630) * Add regression test for #4434. Co-authored-by: Pierre Sassoulas <[email protected]> Co-authored-by: Daniël van Noord <[email protected]>
Successfully merging a pull request may close this issue.
Current problem
Given this code
Depending on whether the second
except
triggers,err
will be undefined in the print statement.Desired solution
Pylint should probably catch this and suggest to rename one of the
err
variables.Additional context
No response
The text was updated successfully, but these errors were encountered: