forked from LBRYCommunity/lbry-sdk
Merge pull request #314 from lbryio/proper-getattr
__getattr__ should call __getattribute__
This commit is contained in:
commit
6c4736d1bd
1 changed files with 2 additions and 1 deletions
|
@ -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"""
|
||||||
|
|
Loading…
Reference in a new issue