diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-11-30 10:25:51 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-11-30 10:25:51 +0100 |
commit | 489c2ec11c6ef54aa084795f21ffc840dfd992f8 (patch) | |
tree | c44899cbbce12843b722bc4f911eeea1890e2684 | |
parent | 78354b00b617c33e0a4bfedf83273bfc938d714e (diff) | |
download | obexd-489c2ec11c6ef54aa084795f21ffc840dfd992f8.tar.gz |
test: Allow phonebook listing to fail
-rwxr-xr-x | test/pbap-client | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/pbap-client b/test/pbap-client index 7dd54ef..fbe930c 100755 --- a/test/pbap-client +++ b/test/pbap-client @@ -135,7 +135,11 @@ if __name__ == '__main__': print "Size = %d\n" % (ret) print "\n--- List vCard ---\n" - ret = pbap_client.interface().List(dbus.Dictionary()) + try: + ret = pbap_client.interface().List(dbus.Dictionary()) + except: + ret = [] + params = dbus.Dictionary({ "Format" : "vcard30", "Fields" : [ "VERSION", "FN", "TEL"] }) for item in ret: |