mirror of
https://github.com/gryf/wicd.git
synced 2026-01-02 20:04:16 +01:00
Fix crash on accessing preferences.
This commit is contained in:
@@ -167,7 +167,7 @@ def GetWpaSupplicantDrivers():
|
|||||||
patt = re.compile("(\S+)\s+=.*")
|
patt = re.compile("(\S+)\s+=.*")
|
||||||
drivers = patt.findall(output) or [""]
|
drivers = patt.findall(output) or [""]
|
||||||
# We cannot use the "wired" driver for wireless interfaces.
|
# We cannot use the "wired" driver for wireless interfaces.
|
||||||
if 'wired' in rval:
|
if 'wired' in drivers:
|
||||||
drivers.remove('wired')
|
drivers.remove('wired')
|
||||||
return drivers
|
return drivers
|
||||||
def IsValidWpaSuppDriver(driver):
|
def IsValidWpaSuppDriver(driver):
|
||||||
|
|||||||
Reference in New Issue
Block a user