return empty string as default value when docstring is missing

This commit is contained in:
Akinwale Ariwodola 2017-10-09 21:14:16 +01:00
parent fb6545481b
commit 6ed56804b9

View file

@ -1230,7 +1230,7 @@ class Daemon(AuthJSONRPCServer):
)
return self._render_response({
'help': textwrap.dedent(fn.__doc__)
'help': textwrap.dedent(fn.__doc__ or '')
})
def jsonrpc_commands(self):