Update sphinx/ext/autodoc/__init__.py

This commit is contained in:
Eric Wieser 2020-05-03 14:02:11 +01:00 committed by GitHub
parent f3dd6c0bfa
commit b787e4ab8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -751,7 +751,7 @@ class Documenter:
# be cached anyway) # be cached anyway)
self.analyzer.find_attr_docs() self.analyzer.find_attr_docs()
except PycodeError as err: except PycodeError as err:
logger.debug('[autodoc] module analyzer failed:', excinfo=True) logger.debug('[autodoc] module analyzer failed:', exc_info=True)
# no source file -- e.g. for builtin and C modules # no source file -- e.g. for builtin and C modules
self.analyzer = None self.analyzer = None
# at least add the module.__file__ as a dependency # at least add the module.__file__ as a dependency