From 710b8a4834bb596d28b618bbd83083d444b71c89 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 5 Jan 2010 22:15:56 +0000 Subject: [PATCH] Plugins that have never given us config before need a dict created for them before they can set values --- terminatorlib/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index cb62a159..b36b0854 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -443,6 +443,8 @@ class ConfigBase(Borg): elif key == 'keybindings': self.keybindings = value elif plugin is not None: + if not self.plugins.has_key(plugin): + self.plugins[plugin] = {} self.plugins[plugin][key] = value else: raise KeyError('ConfigBase::set_item: unknown key %s' % key)