From 02d2bad03fc5da4dd968821715e6b19d3847c2f9 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Tue, 15 Nov 2016 23:29:23 -0600 Subject: [PATCH] allow json to be used to set settings --- lbrynet/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbrynet/conf.py b/lbrynet/conf.py index 668e58769..ddb27a267 100644 --- a/lbrynet/conf.py +++ b/lbrynet/conf.py @@ -52,6 +52,8 @@ def convert_setting(env_val, current_val): def _convert_setting(env_val, current_val): + if isinstance(env_val, basestring): + return json.loads(env_val) new_type = env_val.__class__ current_type = current_val.__class__ if current_type is bool: