diff --git a/MultiServer.py b/MultiServer.py index 77839110a3..52c80c5540 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -1364,7 +1364,10 @@ class CommandProcessor(metaclass=CommandMeta): argname += "=" + parameter.default argtext += argname argtext += " " - doctext = '\n '.join(inspect.getdoc(method).split('\n')) + method_doc = inspect.getdoc(method) + if method_doc is None: + method_doc = "(missing help text)" + doctext = "\n ".join(method_doc.split("\n")) s += f"{self.marker}{command} {argtext}\n {doctext}\n" return s