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
This commit is contained in:
kriss 2008-07-26 18:14:07 +00:00
parent 02a0875646
commit 49839b2e81

View file

@ -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"