X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2Fconfig.py;h=6e5608570b7d7b7410c7d010414fdfb822930301;hb=e19feb6903e6054302080ae40d2bcfa5c2d1628e;hp=44ad6d2acceec22f91938e59cb7498326075453f;hpb=c46808cedb700ae515a8a12b0d122dae83d68800;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"])