Skip to content

Commit 30b7c3d

Browse files
authored
mat_types.py: fix bug when parsing mlapp files that have no description (#196)
1 parent 06bdf5b commit 30b7c3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinxcontrib/mat_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,9 @@ def parse_mlappfile(mlappfile, name, path):
452452
# codeText = codeDesc.text
453453

454454
doc = []
455-
if coreDesc is not None:
455+
if coreDesc is not None and coreDesc.text is not None:
456456
doc.append(coreDesc.text)
457-
if metaDesc is not None:
457+
if metaDesc is not None and metaDesc.text is not None:
458458
doc.append(metaDesc.text)
459459
docstring = "\n\n".join(doc)
460460

0 commit comments

Comments
 (0)