projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c4a43f
)
Handle cases for unknown network types
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 5 Jan 2009 22:03:53 +0000
(23:03 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 5 Jan 2009 22:03:53 +0000
(23:03 +0100)
test/list-networks
patch
|
blob
|
history
diff --git
a/test/list-networks
b/test/list-networks
index
8b1ade1
..
f4d5075
100755
(executable)
--- 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)