1
0
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:
Gobinath 2017-10-12 09:44:34 -04:00
parent 5aebb3da5d
commit 92c71b271e

View File

@ -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: