diff options
-rw-r--r-- | pylint/extensions/_check_docs_utils.py | 2 | ||||
-rw-r--r-- | pylint/test/extensions/test_check_docs_utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pylint/extensions/_check_docs_utils.py b/pylint/extensions/_check_docs_utils.py index 759c72d69..39d7550b7 100644 --- a/pylint/extensions/_check_docs_utils.py +++ b/pylint/extensions/_check_docs_utils.py @@ -69,7 +69,7 @@ def possible_exc_types(node): if handler and handler.type: excs = astroid.unpack_infer(handler.type) - excs = (exc.name for exc in excs if exc is not astroid.Uninferable) + excs = (exc.name for exc in excs if exc is not astroid.YES) excs = set(exc for exc in excs if not node_ignores_exception(node, exc)) return excs diff --git a/pylint/test/extensions/test_check_docs_utils.py b/pylint/test/extensions/test_check_docs_utils.py index b55cf5b03..fdc313535 100644 --- a/pylint/test/extensions/test_check_docs_utils.py +++ b/pylint/test/extensions/test_check_docs_utils.py @@ -126,7 +126,7 @@ class PossibleExcTypesText(unittest.TestCase): self.assertEqual(found, expected) def test_ignores_uninferable_type(self): - raise_node = astroid.extract_node(''' + raise_node = test_utils.extract_node(''' import not_a_module def my_func(): try: |