raise exceptions, dont yield them
This commit is contained in:
parent
54b4b6984e
commit
63cb2cf571
1 changed files with 1 additions and 2 deletions
|
@ -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__
|
||||
|
|
Loading…
Reference in a new issue