test: ignore ESN errors in info.py

This commit is contained in:
Dan Williams
2012-05-30 12:11:25 -05:00
parent fcc4903a83
commit 99b877ee68

View File

@@ -47,8 +47,11 @@ def get_reg_state(state):
def cdma_inspect(proxy, props): def cdma_inspect(proxy, props):
cdma = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM_CDMA) cdma = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM_CDMA)
try:
esn = cdma.GetEsn() esn = cdma.GetEsn()
print "ESN: %s" % esn print "ESN: %s" % esn
except dbus.exceptions.DBusException, e:
print "Error reading ESN: %s" % e
try: try:
(cdma_1x_state, evdo_state) = cdma.GetRegistrationState() (cdma_1x_state, evdo_state) = cdma.GetRegistrationState()