err_msg should be in unicode

This commit is contained in:
Emmanuel Garette 2017-01-16 14:33:43 +01:00
parent 9920f001ea
commit 913a747a2e

View File

@ -581,7 +581,7 @@ class Option(OnlyOption):
'submulti_index: {2}'.format(_value, _index,
submulti_index),
exc_info=True)
err_msg = '{0}'.format(err)
err_msg = unicode('{0}')
if err_msg:
msg = _('"{0}" is an invalid {1} for "{2}", {3}'
'').format(_value, self._display_name,