Merge branch 'bug_617_default_favlist_handling_fix'
authorghost <andreas.monzner@multimedia-labs.de>
Mon, 22 Nov 2010 16:24:01 +0000 (17:24 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Mon, 22 Nov 2010 16:24:01 +0000 (17:24 +0100)
lib/python/Components/config.py

index 44ad6d2acceec22f91938e59cb7498326075453f..6e5608570b7d7b7410c7d010414fdfb822930301 100755 (executable)
@@ -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"])