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:
parent
02a0875646
commit
49839b2e81
1 changed files with 6 additions and 1 deletions
|
@ -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…
Reference in a new issue