test for env var prefix

This commit is contained in:
Tim Mundt
2017-09-05 10:58:48 +02:00
parent 97d8b9e908
commit 9572ecc5ea
2 changed files with 9 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ class Config(dict):
if load_env:
prefix = SANIC_PREFIX if load_env == True else load_env
self.load_environment_vars(prefix=load_env)
self.load_environment_vars(prefix=prefix)
def __getattr__(self, attr):
try: