summaryrefslogtreecommitdiff
path: root/pylint/checkers/exceptions.py
diff options
context:
space:
mode:
authorSteven Myint <hg@stevenmyint.com>2015-03-13 06:57:53 -0700
committerSteven Myint <hg@stevenmyint.com>2015-03-13 06:57:53 -0700
commit78ccc747f2aea7a14c6038b192b981e0924f74ff (patch)
treeea96a3114bd46327404efb908b48ada883d2dee6 /pylint/checkers/exceptions.py
parent9104d8d753e10736245d75a85a7419552eb3b928 (diff)
downloadpylint-78ccc747f2aea7a14c6038b192b981e0924f74ff.tar.gz
Remove unnecessary loop
Diffstat (limited to 'pylint/checkers/exceptions.py')
-rw-r--r--pylint/checkers/exceptions.py3
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)