mirror of https://github.com/searxng/searxng.git
Merge pull request #2728 from return42/fix-loader
[fix] settings_loader.py - use update_dict only for mapping types
This commit is contained in:
commit
a477a3a687
|
@ -57,7 +57,7 @@ def update_settings(default_settings, user_settings):
|
|||
# merge everything except the engines
|
||||
for k, v in user_settings.items():
|
||||
if k not in ('use_default_settings', 'engines'):
|
||||
if k in default_settings:
|
||||
if k in default_settings and isinstance(v, Mapping):
|
||||
update_dict(default_settings[k], v)
|
||||
else:
|
||||
default_settings[k] = v
|
||||
|
|
Loading…
Reference in New Issue