diff --git a/couchpotato/environment.py b/couchpotato/environment.py index d4bf4eac..0b20063f 100644 --- a/couchpotato/environment.py +++ b/couchpotato/environment.py @@ -37,12 +37,13 @@ class Env: @staticmethod def setting(attr, section = 'core', value = None, default = ''): + s = Env.get('settings') + # Return setting if value == None: - return Env.get('settings').get(attr, default = default, section = section) + return s.get(attr, default = default, section = section) # Set setting - s = Env.get('settings') s.set(section, attr, value) s.save()