summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-05 23:03:53 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-05 23:03:53 +0100
commit47c19cde9956bd22b021dc90d115079ddd743521 (patch)
treebe65c7c246a19ce95e4102790b24b380381bf2c2 /test
parent4c4a43fea3872b69c695573def36b1c146ee6712 (diff)
downloadconnman-47c19cde9956bd22b021dc90d115079ddd743521.tar.gz
connman-47c19cde9956bd22b021dc90d115079ddd743521.tar.bz2
connman-47c19cde9956bd22b021dc90d115079ddd743521.zip
Handle cases for unknown network types
Diffstat (limited to 'test')
-rwxr-xr-xtest/list-networks7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/list-networks b/test/list-networks
index 8b1ade1c..f4d5075f 100755
--- a/test/list-networks
+++ b/test/list-networks
@@ -25,9 +25,12 @@ for path in properties["Devices"]:
properties = device.GetProperties()
- if properties["Type"] not in ["wifi", "wimax",
+ try:
+ if properties["Type"] not in ["wifi", "wimax",
"bluetooth", "cellular"]:
- continue;
+ continue
+ except:
+ continue
print "[ %s ]" % (path)