From 99b877ee6834fd41f57a9fd768d03f7319822de1 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 30 May 2012 12:11:25 -0500 Subject: test: ignore ESN errors in info.py --- test/info.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/info.py') 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() -- cgit v1.2.3-70-g09d2