Skip to content

Commit 45e5e22

Browse files
committed
Bug fix for sub-projects with no readme
1 parent 201399e commit 45e5e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/python/modconstruct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __doc__(self):
8787
if hasattr(self, "_autodoc"):
8888
return self._autodoc
8989

90-
introdoc = textwrap.dedent(getattr(self.func, "__doc__", "")) or ""
90+
introdoc = textwrap.dedent(getattr(self.func, "__doc__", None) or "") or ""
9191
if introdoc:
9292
introdoc += "\n\n"
9393
introdoc += '\nEquivalent to\n-------------\n\n::\n\n'

0 commit comments

Comments
 (0)