jp (debug): method callback now handles methods without return value
This commit is contained in:
parent
7ad14f2252
commit
710e243d08
1 changed files with 3 additions and 2 deletions
|
|
@ -54,8 +54,9 @@ class Method(base.CommandBase, BridgeCommon):
|
|||
self.parser.add_argument("method", type=str, help=_(u"name of the method to execute"))
|
||||
self.parser.add_argument("arg", type=base.unicode_decoder, nargs="*", help=_(u"argument of the method"))
|
||||
|
||||
def method_cb(self, ret):
|
||||
self.disp(unicode(ret))
|
||||
def method_cb(self, ret=None):
|
||||
if ret is not None:
|
||||
self.disp(unicode(ret))
|
||||
self.host.quit()
|
||||
|
||||
def method_eb(self, failure):
|
||||
|
|
|
|||
Loading…
Reference in a new issue