diff --git a/sanic/config.py b/sanic/config.py index 853e4a99..e8846465 100644 --- a/sanic/config.py +++ b/sanic/config.py @@ -131,7 +131,7 @@ class Config(dict): self.GRACEFUL_SHUTDOWN_TIMEOUT = 15.0 # 15 sec if load_env: - prefix = SANIC_PREFIX if load_env == True else load_env + prefix = SANIC_PREFIX if load_env is True else load_env self.load_environment_vars(prefix=prefix) def __getattr__(self, attr):