fix attr get
This commit is contained in:
parent
d668a63d39
commit
7432c37431
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class WrappedSettings:
|
||||||
self.settings = yaml.load(settings)
|
self.settings = yaml.load(settings)
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
value = getattr(self.settings, name)
|
value = self.settings[name]
|
||||||
if type(value) == dict:
|
if type(value) == dict:
|
||||||
value = DotDictionary(value)
|
value = DotDictionary(value)
|
||||||
return value
|
return value
|
||||||
|
|
Reference in a new issue