From 7432c37431a66ab10cc20a4c82d84f1a0b416f4f Mon Sep 17 00:00:00 2001 From: TheOrangeOne Date: Thu, 8 Sep 2016 22:14:11 +0100 Subject: [PATCH] fix attr get --- config/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/__init__.py b/config/__init__.py index dc1cd9b..1c0f0bc 100644 --- a/config/__init__.py +++ b/config/__init__.py @@ -19,7 +19,7 @@ class WrappedSettings: self.settings = yaml.load(settings) def __getattr__(self, name): - value = getattr(self.settings, name) + value = self.settings[name] if type(value) == dict: value = DotDictionary(value) return value