Merge pull request #314 from lbryio/proper-getattr

__getattr__ should call __getattribute__
This commit is contained in:
Job Evers‐Meltzer 2016-12-06 09:47:04 -05:00 committed by GitHub
commit 6c4736d1bd

View file

@ -194,7 +194,8 @@ class AdjustableSettings(Settings):
def __getattr__(self, attr): def __getattr__(self, attr):
if attr in self.environ.original_schema: if attr in self.environ.original_schema:
return self.environ(attr) return self.environ(attr)
raise AttributeError return self.__getattribute__(attr)
class ApplicationSettings(Settings): class ApplicationSettings(Settings):
"""Settings that are constants and shouldn't be overriden""" """Settings that are constants and shouldn't be overriden"""