forked from LBRYCommunity/lbry-sdk
allow json to be used to set settings
This commit is contained in:
parent
f65a50a6a3
commit
02d2bad03f
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue