Plugins that have never given us config before need a dict created for them before they can set values
This commit is contained in:
parent
299e4cc5a8
commit
710b8a4834
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue