# HG changeset patch
# User Goffi <goffi@goffi.org>
# Date 1472407804 -7200
# Node ID a3c2866841f75e19749935f9689041ff33ca2788
# Parent  d44efd32bc2f9ba55829768acad1e9d5781f7986
jp (debug): method callback now handles methods without return value

diff -r d44efd32bc2f -r a3c2866841f7 frontends/src/jp/cmd_debug.py
--- a/frontends/src/jp/cmd_debug.py	Sun Aug 28 20:09:09 2016 +0200
+++ b/frontends/src/jp/cmd_debug.py	Sun Aug 28 20:10:04 2016 +0200
@@ -54,8 +54,9 @@
         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):