From: Chang.H.S Date: Mon, 21 May 2012 08:49:35 +0000 (+0900) Subject: WirelessLanSetup : fix bug (AP's protocol info is None) X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=c57b52ddddfe85cd4e16fa1051e70c1f07d9f74f WirelessLanSetup : fix bug (AP's protocol info is None) --- diff --git a/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py b/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py index 3207bb8..a62f94e 100755 --- a/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py +++ b/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py @@ -1037,7 +1037,7 @@ class WlanScanAp(Screen,HelpableScreen): self["menulist"].setList(self.setApList) index = self["menulist"].getCurrent()[1] for key in ["Address", "ESSID", "Protocol", "Frequency", "Encryption key", "BitRate"]: - if self.apList[index].has_key(key): + if self.apList[index].has_key(key) and self.apList[index][key] is not None: self[key].setText((key+": "+self.apList[index][key])) else: self[key].setText((key+": None"))