mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #9189: autodoc: crashed by ValueError on generating signature of property
Autodoc is crashed if `inspect.signature` raises ValueError on generating signature from a property of the class. It seems the original code re-raise the exception meaningless. So this ignores it even if raised.
This commit is contained in:
parent
cfb9183715
commit
23fcb91c2f
3
CHANGES
3
CHANGES
@ -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
|
||||
--------
|
||||
|
||||
|
@ -2570,7 +2570,7 @@ class PropertyDocumenter(DocstringStripSignatureMixin, ClassLevelDocumenter): #
|
||||
self.fullname, exc)
|
||||
return None
|
||||
except ValueError:
|
||||
raise
|
||||
return None
|
||||
|
||||
|
||||
class NewTypeAttributeDocumenter(AttributeDocumenter):
|
||||
|
Loading…
Reference in New Issue
Block a user