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

Fixed bug in list_commands handler method.

parent 8a2fbdfa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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