Fix: Only try to delete a key in the settings that's actually there
This commit is contained in:
parent
4abd97df09
commit
a6c1084b14
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue