aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2009-08-31 14:30:06 -0500
committerDan Williams <dcbw@redhat.com>2009-08-31 14:30:06 -0500
commita479b58f50f65a736e05e5abe7278b6feb6be899 (patch)
treef87bd1e03fcfb65121dfd1a2f464784d5a597ece /test
parent09fc288f2bec6f54d300a916a6238c1533e0daa7 (diff)
test: don't bail out on errors parsing CDMA serving system results
Diffstat (limited to 'test')
-rwxr-xr-xtest/mm-test.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/mm-test.py b/test/mm-test.py
index dd83f608..d83223a8 100755
--- a/test/mm-test.py
+++ b/test/mm-test.py
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -46,10 +47,14 @@ def inspect_cdma(proxy, dump_private):
print "ESN: %s" % esn
print "-------------------"
- info = cdma.GetServingSystem()
- print "Class: %s" % get_cdma_band_class(info[0])
- print "Band: %s" % info[1]
- print "SID: %d" % info[2]
+
+ try:
+ info = cdma.GetServingSystem()
+ print "Class: %s" % get_cdma_band_class(info[0])
+ print "Band: %s" % info[1]
+ print "SID: %d" % info[2]
+ except dbus.exceptions.DBusException, e:
+ print "Error reading serving system: %s" % e
def get_gsm_network_mode(modem):