summaryrefslogtreecommitdiff
path: root/checkers/exceptions.py
diff options
context:
space:
mode:
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