diff options
author | Steven Myint <hg@stevenmyint.com> | 2015-03-13 06:57:53 -0700 |
---|---|---|
committer | Steven Myint <hg@stevenmyint.com> | 2015-03-13 06:57:53 -0700 |
commit | 78ccc747f2aea7a14c6038b192b981e0924f74ff (patch) | |
tree | ea96a3114bd46327404efb908b48ada883d2dee6 /pylint/checkers/exceptions.py | |
parent | 9104d8d753e10736245d75a85a7419552eb3b928 (diff) | |
download | pylint-78ccc747f2aea7a14c6038b192b981e0924f74ff.tar.gz |
Remove unnecessary loop
Diffstat (limited to 'pylint/checkers/exceptions.py')
-rw-r--r-- | pylint/checkers/exceptions.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pylint/checkers/exceptions.py b/pylint/checkers/exceptions.py index f78d4e7..eeb5693 100644 --- a/pylint/checkers/exceptions.py +++ b/pylint/checkers/exceptions.py @@ -328,8 +328,7 @@ class ExceptionsChecker(BaseChecker): self.add_message('broad-except', args=exc.name, node=handler.type) - for (_, current_exc) in excs: - if current_exc in exceptions_classes: + if exc in exceptions_classes: self.add_message('duplicate-except', args=exc.name, node=handler.type) |