From 92c71b271ef69ec774ded60f97f85b4d66424a54 Mon Sep 17 00:00:00 2001 From: Gobinath Date: Thu, 12 Oct 2017 09:44:34 -0400 Subject: [PATCH] Fix error in upgrading plugins --- safeeyes/Utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safeeyes/Utility.py b/safeeyes/Utility.py index 83fd998..bd8da1f 100644 --- a/safeeyes/Utility.py +++ b/safeeyes/Utility.py @@ -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: