properties = device.GetProperties()
if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
- continue;
+ continue
print "[ %s ]" % (path)
properties = network.GetProperties()
- if "Name" not in properties.keys:
+ if "Name" not in properties.keys():
continue
if (properties["Connected"] == dbus.Boolean(1)):