Don't crash in exception handler when new option is in ValueList

This commit is contained in:
Florian Bruhin 2014-04-25 13:55:03 +02:00
parent c07c29e758
commit 46cf62ab34

View File

@ -178,6 +178,9 @@ class ValueList(Section):
changed = []
mapping = ChainMap(self.layers['temp'], self.layers['conf'])
for k, v in mapping.items():
if v.value != self.layers['default'][k].value:
try:
if v.value != self.layers['default'][k].value:
changed.append((k, v.value))
except KeyError:
changed.append((k, v.value))
return changed