diff options
author | Dan Williams <dcbw@redhat.com> | 2009-11-29 18:56:29 -0800 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-11-29 18:56:29 -0800 |
commit | d5b0574f587ddab904d3a1f1af3cb2c354486f66 (patch) | |
tree | 16498fec5b1f5039198cd00a339a0b2bbb85341c /test | |
parent | aea0be5b9a02926a1f8f72104ce32c7dabae3f84 (diff) |
test: handle scan errors more gracefully
Diffstat (limited to 'test')
-rwxr-xr-x | test/mm-test.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/mm-test.py b/test/mm-test.py index 485f596d..cb6bad2b 100755 --- a/test/mm-test.py +++ b/test/mm-test.py @@ -183,7 +183,12 @@ def gsm_inspect(proxy, dump_private): print "Error reading signal quality: %s" % e print "Scanning..." - results = net.Scan(timeout=120) + try: + results = net.Scan(timeout=120) + except dbus.exceptions.DBusException, e: + print "Error scanning: %s" % e + results = {} + for r in results: status = r['status'] if status == "1": |