mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7818 from tk0miya/7802_EOFError_on_parallel_build
Fix #7802: autodoc: EOFError is raised on parallel build
This commit is contained in:
commit
46f79c55e1
1
CHANGES
1
CHANGES
@ -17,6 +17,7 @@ Bugs fixed
|
||||
----------
|
||||
|
||||
* #7808: autodoc: Warnings raised on variable and attribute type annotations
|
||||
* #7802: autodoc: EOFError is raised on parallel build
|
||||
* #7812: autosummary: generates broken stub files if the target code contains
|
||||
an attribute and module that are same name
|
||||
* #7811: sphinx.util.inspect causes circular import problem
|
||||
|
@ -422,9 +422,9 @@ class Documenter:
|
||||
if matched:
|
||||
args = matched.group(1)
|
||||
retann = matched.group(2)
|
||||
except Exception:
|
||||
logger.warning(__('error while formatting arguments for %s:') %
|
||||
self.fullname, type='autodoc', exc_info=True)
|
||||
except Exception as exc:
|
||||
logger.warning(__('error while formatting arguments for %s: %s'),
|
||||
self.fullname, exc, type='autodoc')
|
||||
args = None
|
||||
|
||||
result = self.env.events.emit_firstresult('autodoc-process-signature',
|
||||
@ -795,8 +795,8 @@ class Documenter:
|
||||
# parse right now, to get PycodeErrors on parsing (results will
|
||||
# be cached anyway)
|
||||
self.analyzer.find_attr_docs()
|
||||
except PycodeError:
|
||||
logger.debug('[autodoc] module analyzer failed:', exc_info=True)
|
||||
except PycodeError as exc:
|
||||
logger.debug('[autodoc] module analyzer failed: %s', exc)
|
||||
# no source file -- e.g. for builtin and C modules
|
||||
self.analyzer = None
|
||||
# at least add the module.__file__ as a dependency
|
||||
|
Loading…
Reference in New Issue
Block a user