1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-28 17:32:36 +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+=.*")
drivers = patt.findall(output) or [""]
# We cannot use the "wired" driver for wireless interfaces.
if 'wired' in rval:
if 'wired' in drivers:
drivers.remove('wired')
return drivers
def IsValidWpaSuppDriver(driver):