default values can contain nonstrings and those should not be converted
via to_text.
This commit is contained in:
Toshio Kuratomi 2017-01-04 14:35:05 -08:00
parent 91242b8cc3
commit f129977e2b

View file

@ -135,7 +135,7 @@ def _get_config(p, section, key, env_var, default):
except:
pass
return to_text(value, errors='surrogate_or_strict')
return to_text(value, errors='surrogate_or_strict', nonstring='passthru')
def load_config_file():