summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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)