Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Contributors
* Etienne Desautels -- apidoc module
* Ezio Melotti -- collapsible sidebar JavaScript
* Filip Vavera -- napoleon todo directive
* Florian Best -- log improvements
* Glenn Matthews -- python domain signature improvements
* Gregory Szorc -- performance improvements
* Henrique Bastos -- SVG support for graphviz extension
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ Bugs fixed
directly defined in certain cases, depending on autodoc processing
order.
Patch by Jeremy Maitin-Shepard.
* #13944: autodoc: show traceback during import in human readable representation.
Patch by Florian Best.


Testing
Expand Down
2 changes: 1 addition & 1 deletion sphinx/ext/autodoc/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def _import_from_module_and_path(
# import_module() raises ImportError having real exception obj and
# traceback
real_exc = exc.args[0]
traceback_msg = traceback.format_exception(exc)
traceback_msg = ''.join(traceback.format_exception(exc))
if isinstance(real_exc, SystemExit):
err_parts.append(
'the module executes module level statement '
Expand Down
Loading