Fix: Only try to delete a key in the settings that's actually there

This commit is contained in:
Gina Häußge 2015-06-19 21:52:03 +02:00
parent 4abd97df09
commit a6c1084b14

View file

@ -969,7 +969,7 @@ class Settings(object):
del config[key]
self._dirty = True
elif force or (not key in config and defaults[key] != value) or (key in config and config[key] != value):
if value is None:
if value is None and key in config:
del config[key]
else:
config[key] = value