diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-05 23:03:53 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-05 23:03:53 +0100 |
commit | 47c19cde9956bd22b021dc90d115079ddd743521 (patch) | |
tree | be65c7c246a19ce95e4102790b24b380381bf2c2 /test | |
parent | 4c4a43fea3872b69c695573def36b1c146ee6712 (diff) | |
download | connman-47c19cde9956bd22b021dc90d115079ddd743521.tar.gz connman-47c19cde9956bd22b021dc90d115079ddd743521.tar.bz2 connman-47c19cde9956bd22b021dc90d115079ddd743521.zip |
Handle cases for unknown network types
Diffstat (limited to 'test')
-rwxr-xr-x | test/list-networks | 7 |
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) |