allow json to be used to set settings

This commit is contained in:
Job Evers-Meltzer 2016-11-15 23:29:23 -06:00 committed by Job Evers
parent f65a50a6a3
commit 02d2bad03f

View file

@ -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: