raise exceptions, dont yield them

This commit is contained in:
Alex Grintsvayg 2017-03-08 17:14:31 -05:00
parent 54b4b6984e
commit 63cb2cf571

View file

@ -1350,10 +1350,9 @@ class Daemon(AuthJSONRPCServer):
fn = self.callable_methods.get(command)
if fn is None:
yield Exception(
raise Exception(
"No help available for '{}'. It is not a valid command.".format(command)
)
return
yield {
'help': fn.__doc__