X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2Fconfig.py;h=6e5608570b7d7b7410c7d010414fdfb822930301;hb=df40bb74c9b81ad3d7ad16cb8e6c3ff0f70f649a;hp=44ad6d2acceec22f91938e59cb7498326075453f;hpb=7d6ff22b6dd5b0f7b35fb35747109d70b6324d3e;p=vuplus_dvbapp diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 44ad6d2..6e56085 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -1647,9 +1647,12 @@ class Config(ConfigSubsection): if not base_file: # not the initial config file.. #update config.x.y.value when exist - configEntry = eval(name) - if configEntry is not None: - configEntry.value = val + try: + configEntry = eval(name) + if configEntry is not None: + configEntry.value = val + except (SyntaxError, KeyError): + pass # we inherit from ConfigSubsection, so ... #object.__setattr__(self, "saved_value", tree["config"])