diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-11-13 09:09:57 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-11-13 09:09:57 +0100 |
commit | 02688062140cc7ffa9c4f1a1f04c13d6f198a400 (patch) | |
tree | 5da0eee5ea4a429c61c660c8df832e86cc3f6a27 /tests/functional/n | |
parent | c9cf63ebaa671a34b7d9947eebd1d0da904dbcb0 (diff) | |
download | pylint-git-02688062140cc7ffa9c4f1a1f04c13d6f198a400.tar.gz |
Do not exempt bare except from ``undefined-variable`` and similar checks
If a node was wrapped in a ``TryExcept``, ``pylint`` was taking a hint
from the except handler when deciding to emit or not a message.
We were treating bare except as a fully fledged ignore but only
the corresponding exceptions should be handled that way (e.g. ``NameError`` or ``ImportError``)
Close #3235
Diffstat (limited to 'tests/functional/n')
-rw-r--r-- | tests/functional/n/no_name_in_module.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/n/no_name_in_module.py b/tests/functional/n/no_name_in_module.py index 8b309fd0a..73ad2db93 100644 --- a/tests/functional/n/no_name_in_module.py +++ b/tests/functional/n/no_name_in_module.py @@ -52,7 +52,7 @@ except Exception: try: import collections.emit1 -except: +except ImportError: pass try: |