summaryrefslogtreecommitdiff
path: root/checkers/exceptions.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-01-01 20:01:24 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2014-01-01 20:01:24 +0200
commit490b9738ebb78ff42430cbe16ee63f1ef327adf6 (patch)
tree2008e33b30985bdf24062408f294952f209f3952 /checkers/exceptions.py
parent70cbb6960e6d931bbe82d46a1148ab72b4856d02 (diff)
downloadpylint-git-490b9738ebb78ff42430cbe16ee63f1ef327adf6.tar.gz
Use `all` for a clearer intent
Diffstat (limited to 'checkers/exceptions.py')
-rw-r--r--checkers/exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkers/exceptions.py b/checkers/exceptions.py
index 175c77b2e..5bb07acc8 100644
--- a/checkers/exceptions.py
+++ b/checkers/exceptions.py
@@ -235,8 +235,8 @@ class ExceptionsChecker(BaseChecker):
# exception, by infering all the base classes and
# looking for inference errors
bases = infer_bases(exc)
- fully_infered = not any(inferit is YES
- for inferit in bases)
+ fully_infered = all(inferit is not YES
+ for inferit in bases)
if fully_infered:
self.add_message('catching-non-exception',
node=handler.type,