diff src/plugins/plugin_adhoc_dbus.py @ 1933:16e65f15f31f

plugin adhoc_dbus, jp (cmd/adhoc): fixes adHocDBusAddAuto when no bus is found fix bug 134
author souliane <souliane@mailoo.org>
date Sun, 17 Apr 2016 13:37:40 +0200
parents d17772b0fe22
children 2daf7b4c6756
line wrap: on
line diff
--- a/src/plugins/plugin_adhoc_dbus.py	Sun Apr 17 13:00:44 2016 +0200
+++ b/src/plugins/plugin_adhoc_dbus.py	Sun Apr 17 13:37:40 2016 +0200
@@ -130,7 +130,7 @@
         bus_names = [bus_name for bus_name in bus_names if '.' + prog_name in bus_name]
         if not bus_names:
             log.info("Can't find any bus for [%s]" % prog_name)
-            return
+            defer.returnValue(("", []))
         bus_names.sort()
         for bus_name in bus_names:
             if bus_name.endswith(prog_name):