diff options
author | Dan Williams <dcbw@redhat.com> | 2012-05-30 12:11:25 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-05-31 17:20:28 -0500 |
commit | 03fb11bd018868a793bf74a66d94685c2c533d78 (patch) | |
tree | f48050d561dfbe44da34e0695cca452c2c61ff15 | |
parent | f651ac2160b24f8e08f5a18c583cb1bd38c3b248 (diff) | |
download | ModemManager-03fb11bd018868a793bf74a66d94685c2c533d78.tar.gz |
test: ignore ESN errors in info.py
-rwxr-xr-x | test/info.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/info.py b/test/info.py index 82057fa5f..878adb757 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() |