mirror of
https://github.com/slgobinath/SafeEyes.git
synced 2024-12-24 23:50:46 +01:00
Fix error in upgrading plugins
This commit is contained in:
parent
5aebb3da5d
commit
92c71b271e
@ -398,7 +398,7 @@ def __update_plugin_config(plugin, plugin_config, config):
|
||||
plugin['settings'][setting['id']] = setting['default']
|
||||
# Remove the removed ids
|
||||
keys_to_remove = []
|
||||
for key in plugin['settings']:
|
||||
for key in plugin.get('settings', []):
|
||||
if key not in setting_ids:
|
||||
keys_to_remove.append(key)
|
||||
for key in keys_to_remove:
|
||||
|
Loading…
Reference in New Issue
Block a user