Skip to content

Commit 56dbe0c

Browse files
authored
Merge pull request #3144 from migueldiascosta/handle_missing_docstring
only parse docstring if it exists
2 parents e986ddf + 6e3875a commit 56dbe0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easybuild/tools/docs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,8 @@ def gen_easyblock_doc_section_rst(eb_class, path_to_examples, common_params, doc
867867
doc.extend([derived, ''])
868868

869869
# Description (docstring)
870-
doc.extend([eb_class.__doc__.strip(), ''])
870+
if eb_class.__doc__ is not None:
871+
doc.extend([eb_class.__doc__.strip(), ''])
871872

872873
# Add extra options, if any
873874
if eb_class.extra_options():

0 commit comments

Comments
 (0)