BUGFIX: Allow for stratup without root access (to WiFi interface)

git-svn-id: http://www.neo1973-germany.de/svn@85 46df4e5c-bc4e-4628-a0fc-830ba316316d
main
kriss 16 years ago
parent 02a0875646
commit 49839b2e81

@ -53,7 +53,12 @@ class MofiPanel(gtk.VBox):
wifi = Wireless(ifname)
essid = wifi.getEssid()
wifi.scan()
try:
wifi.scan()
except(RuntimeError):
print "could not scan for WiFi networks, may need root permission"
return []
for results in wifi.scan():
enc_type = "unknown"

Loading…
Cancel
Save