Ensure that accessing self.api.settings works for plugins.
This commit is contained in:
parent
9ffde5ab37
commit
af099737ab
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ class APIWrapper(object):
|
|||
def __init__(self, api, name):
|
||||
self.api = api
|
||||
self.name = name
|
||||
if name not in self.api.settings:
|
||||
self.api.settings[name] = {}
|
||||
|
||||
def __getattr__(self, attr):
|
||||
"""Curry API management commands with the API name."""
|
||||
|
|
Loading…
Reference in a new issue