Commit 23981a6a authored by Antoine Millet's avatar Antoine Millet

Fixed bug in list_commands handler method.

parent 8a2fbdfa
......@@ -37,7 +37,9 @@ class CCHandler(RpcHandler):
if getattr(attr, '__listed__', False):
cmd = {}
cmd['name'] = attr.__name__
cmd['description'] = inspect.cleandoc(inspect.getdoc(attr))
doc = inspect.getdoc(attr)
if doc:
cmd['description'] = inspect.cleandoc(doc)
cmd_list.append(cmd)
return cmd_list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment