diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2014-01-01 20:01:24 +0200 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2014-01-01 20:01:24 +0200 |
| commit | 490b9738ebb78ff42430cbe16ee63f1ef327adf6 (patch) | |
| tree | 2008e33b30985bdf24062408f294952f209f3952 /checkers/exceptions.py | |
| parent | 70cbb6960e6d931bbe82d46a1148ab72b4856d02 (diff) | |
| download | pylint-git-490b9738ebb78ff42430cbe16ee63f1ef327adf6.tar.gz | |
Use `all` for a clearer intent
Diffstat (limited to 'checkers/exceptions.py')
| -rw-r--r-- | checkers/exceptions.py | 4 |
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, |
