From 7d0e9f6ab97960a5c9525202a7136482c87fa02b Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Thu, 1 Dec 2016 23:51:55 -0500 Subject: [PATCH] Tweak logic in ApplicationSettings Use self.environ instead of ENVIRONMENT to avoid global reference --- lbrynet/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/conf.py b/lbrynet/conf.py index bbcfd9306..c3c1910bb 100644 --- a/lbrynet/conf.py +++ b/lbrynet/conf.py @@ -271,7 +271,7 @@ class Config(DefaultSettings): return {k: self[k] for k in self} def get_adjustable_settings_dict(self): - return {opt: val for opt, val in self.get_dict().iteritems() if opt in ENVIRONMENT.original_schema} + return {opt: val for opt, val in self.get_dict().iteritems() if opt in self.environ.original_schema} def ensure_data_dir(self): # although there is a risk of a race condition here we don't