diff options
author | Dan Williams <dcbw@redhat.com> | 2009-06-18 22:36:31 -0400 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-06-18 22:36:31 -0400 |
commit | 53d6ca970c0a670a14492033674d5e7f93772e8d (patch) | |
tree | c2cf7b80e255b9601dc708af34b9b4c7e0e79d09 /test | |
parent | 832b43cab5e3cef6b755d8651fa4b715e3e63fd7 (diff) |
test: allow IMEI request to fail
Diffstat (limited to 'test')
-rwxr-xr-x | test/mm-test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/mm-test.py b/test/mm-test.py index 85f297b5..2cdbab07 100755 --- a/test/mm-test.py +++ b/test/mm-test.py @@ -95,7 +95,10 @@ for m in modems: # Gsm.Card interface card = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM_GSM_CARD) - print "IMEI: %s" % card.GetImei() + try: + print "IMEI: %s" % card.GetImei() + except dbus.exceptions.DBusException: + pass print "IMSI: %s" % card.GetImsi() info = card.GetInfo() |