test: ignore ESN errors in info.py
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
esn = cdma.GetEsn()
|
try:
|
||||||
print "ESN: %s" % esn
|
esn = cdma.GetEsn()
|
||||||
|
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()
|
||||||
|
Reference in New Issue
Block a user