Skip to content

Commit

Permalink
mat_types.py: fix bug when parsing mlapp files that have no descripti…
Browse files Browse the repository at this point in the history
…on (#196)
  • Loading branch information
luhuhis authored Jun 27, 2023
1 parent 06bdf5b commit 30b7c3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinxcontrib/mat_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ def parse_mlappfile(mlappfile, name, path):
# codeText = codeDesc.text

doc = []
if coreDesc is not None:
if coreDesc is not None and coreDesc.text is not None:
doc.append(coreDesc.text)
if metaDesc is not None:
if metaDesc is not None and metaDesc.text is not None:
doc.append(metaDesc.text)
docstring = "\n\n".join(doc)

Expand Down

0 comments on commit 30b7c3d

Please sign in to comment.