1
0
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:
Andrew Psaltis
2009-12-14 16:21:02 -05:00
parent b8b8ba2d5d
commit 44e27b509f

View File

@@ -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):