text-ify config warning message (#63349)

This commit is contained in:
Matt Davis 2019-10-10 11:31:54 -07:00 committed by GitHub
parent add74fd24b
commit b20a0f4831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -393,7 +393,7 @@ class ConfigManager(object):
try:
temp_value = container.get(name, None)
except UnicodeEncodeError:
self.WARNINGS.add('value for config entry {0} contains invalid characters, ignoring...'.format(to_native(name)))
self.WARNINGS.add(u'value for config entry {0} contains invalid characters, ignoring...'.format(to_text(name)))
continue
if temp_value is not None: # only set if env var is defined
value = temp_value