aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-05-30 12:11:25 -0500
committerDan Williams <dcbw@redhat.com>2012-07-18 22:34:38 -0500
commit76008c7c8f049bdc0f89520f8807ae7639b4a0dc (patch)
tree1a2c8e4ca1136ff719d6bee61f812f1df0548a27
parente92ce19c57fcb1e5c6c32703c9e62895f033171d (diff)
test: ignore ESN errors in info.py
-rwxr-xr-xtest/info.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/info.py b/test/info.py
index 82057fa5..878adb75 100755
--- a/test/info.py
+++ b/test/info.py
@@ -47,8 +47,11 @@ def get_reg_state(state):
def cdma_inspect(proxy, props):
cdma = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM_CDMA)
- esn = cdma.GetEsn()
- print "ESN: %s" % esn
+ try:
+ esn = cdma.GetEsn()
+ print "ESN: %s" % esn
+ except dbus.exceptions.DBusException, e:
+ print "Error reading ESN: %s" % e
try:
(cdma_1x_state, evdo_state) = cdma.GetRegistrationState()