Skip to content
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

unused-variable not triggered for bound exceptions #2480

Closed
PCManticore opened this issue Sep 7, 2018 · 2 comments
Closed

unused-variable not triggered for bound exceptions #2480

PCManticore opened this issue Sep 7, 2018 · 2 comments
Labels

Comments

@PCManticore
Copy link
Contributor

Steps to reproduce

  1. Save the following file and run pylint over it
try:
   1/0
except Exception as e:
   pass

Current behavior

pylint does not complain that e is unused.

Expected behavior

We should complain about that.

pylint --version output

master

@sushobhit27
Copy link
Contributor

Can close this one #2223

@PCManticore
Copy link
Contributor Author

Oh thank you @sushobhit27 should have checked before!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants