From: Chang.H.S Date: Wed, 12 Dec 2012 05:36:19 +0000 (+0900) Subject: WirelessAccessPoint : append exception. X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=bf2efbc84b7d7d41126120f2791afd9b9eca2d62 WirelessAccessPoint : append exception. --- diff --git a/lib/python/Plugins/SystemPlugins/WirelessAccessPoint/plugin.py b/lib/python/Plugins/SystemPlugins/WirelessAccessPoint/plugin.py index ff6849d..1416e31 100755 --- a/lib/python/Plugins/SystemPlugins/WirelessAccessPoint/plugin.py +++ b/lib/python/Plugins/SystemPlugins/WirelessAccessPoint/plugin.py @@ -523,9 +523,12 @@ class WirelessAccessPoint(Screen,ConfigListScreen): sysctlList = {} for line in sysctlLines: line = line.strip() - (key,value) = line.split("=") - key=key.strip() - value=value.strip() + try: + (key,value) = line.split("=") + key=key.strip() + value=value.strip() + except: + continue sysctlList[key] = value sysctlList["net.ipv4.ip_forward"] = str(setValue) fp = file(sysctlPath, "w")