diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-11-09 02:06:14 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-11-09 02:06:14 +0900 |
| commit | 787444ff182c4a3c490e26647f1cd99872a575ba (patch) | |
| tree | 273b8c6a2224bd60ccf07bfbf0c11636fe48767a /sphinx | |
| parent | 1193d83166b7d889343d5aa0268d6c2e9349e692 (diff) | |
| download | sphinx-git-7727_autosummary_PycodeError.tar.gz | |
Fix #7727: autosummary raises PycodeError for namespace python package7727_autosummary_PycodeError
Diffstat (limited to 'sphinx')
| -rw-r--r-- | sphinx/ext/autosummary/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/autosummary/__init__.py b/sphinx/ext/autosummary/__init__.py index 739636d7e..75f53e738 100644 --- a/sphinx/ext/autosummary/__init__.py +++ b/sphinx/ext/autosummary/__init__.py @@ -691,7 +691,7 @@ def import_ivar_by_name(name: str, prefixes: List[str] = [None]) -> Tuple[str, A analyzer = ModuleAnalyzer.for_module(modname) if (qualname, attr) in analyzer.find_attr_docs(): return real_name + "." + attr, INSTANCEATTR, obj, modname - except (ImportError, ValueError): + except (ImportError, ValueError, PycodeError): pass raise ImportError |
