From 47c19cde9956bd22b021dc90d115079ddd743521 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 5 Jan 2009 23:03:53 +0100 Subject: [PATCH] Handle cases for unknown network types --- test/list-networks | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/list-networks b/test/list-networks index 8b1ade1..f4d5075 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) -- 2.7.4