We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 118a027 commit 7bec6c4Copy full SHA for 7bec6c4
src/pytkdocs/cli.py
@@ -124,7 +124,7 @@ def extract_docstring_parsing_errors(errors: dict, obj: Object) -> None:
124
errors: The dictionary to update.
125
obj: The object.
126
"""
127
- if hasattr(obj, "docstring_errors"):
+ if hasattr(obj, "docstring_errors") and obj.docstring_errors:
128
errors[obj.path] = obj.docstring_errors
129
for child in obj.children:
130
extract_docstring_parsing_errors(errors, child)
0 commit comments