diff options
-rwxr-xr-x | test/start-scanning | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/start-scanning b/test/start-scanning index b8e52294..e3bac28a 100755 --- a/test/start-scanning +++ b/test/start-scanning @@ -23,8 +23,10 @@ for path in properties["Technologies"]: for path in properties["Devices"]: device = dbus.Interface(bus.get_object('org.moblin.connman', path), 'org.moblin.connman.Device') - - device.ProposeScan() + try: + device.ProposeScan() + except dbus.DBusException, error: + print " %s: %s" % (error._dbus_error_name, error.message) else: print " No scanning" |