Skip to content

Commit

Permalink
Merge pull request #9190 from tk0miya/9189_ValueError_for_property
Browse files Browse the repository at this point in the history
Fix #9189: autodoc: crashed by ValueError on generating signature of property
  • Loading branch information
tk0miya committed May 10, 2021
2 parents f73e061 + 23fcb91 commit 7c16981
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Features added
Bugs fixed
----------

* #9189: autodoc: crashed when ValueError is raised on generating signature
from a property of the class

Testing
--------

Expand Down
2 changes: 1 addition & 1 deletion sphinx/ext/autodoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2570,7 +2570,7 @@ def add_directive_header(self, sig: str) -> None:
self.fullname, exc)
return None
except ValueError:
raise
return None


class NewTypeAttributeDocumenter(AttributeDocumenter):
Expand Down

0 comments on commit 7c16981

Please sign in to comment.