wifi_list bug fix

This commit is contained in:
cuu 2019-05-09 20:58:31 +08:00
parent 534883ca1f
commit 25b976d948

View File

@ -621,8 +621,8 @@ class WifiList(Page):
for i in wicd_wirelss_encrypt_pwd:
if "preshared_key" in i:
if i["preshared_key"] != None:
if len(i["preshared_key"]) > 0:
thepass = i["preshared_key"]
if len(str(i["preshared_key"])) > 0:
thepass = str(i["preshared_key"])
break
myvars.PasswordPage.SetPassword(thepass)