summaryrefslogtreecommitdiff
path: root/checkers/exceptions.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2014-11-19 09:50:28 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2014-11-19 09:50:28 +0100
commitd788df3700257c6483d3bfebdc0d232bfec07f1b (patch)
treee8a15100c69c971f730039cf72491466e515b6ae /checkers/exceptions.py
parentb14dfa4485c705990c7820014cdae78632732553 (diff)
downloadpylint-git-d788df3700257c6483d3bfebdc0d232bfec07f1b.tar.gz
pylint pylint
Diffstat (limited to 'checkers/exceptions.py')
-rw-r--r--checkers/exceptions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/checkers/exceptions.py b/checkers/exceptions.py
index 0603d8844..e8e5a5412 100644
--- a/checkers/exceptions.py
+++ b/checkers/exceptions.py
@@ -203,7 +203,7 @@ class ExceptionsChecker(BaseChecker):
else:
self.add_message(
'nonstandard-exception', node=node,
- confidence=INFERENCE if has_known_bases(expr) else INFERENCE_FAILURE)
+ confidence=INFERENCE if has_known_bases(expr) else INFERENCE_FAILURE)
else:
value_found = False
else:
@@ -251,8 +251,8 @@ class ExceptionsChecker(BaseChecker):
if (isinstance(exc, astroid.Const) and
exc.value is None):
if ((isinstance(handler.type, astroid.Const) and
- handler.type.value is None) or
- handler.type.parent_of(exc)):
+ handler.type.value is None) or
+ handler.type.parent_of(exc)):
# If the exception handler catches None or
# the exception component, which is None, is
# defined by the entire exception handler, then