err_msg should be in unicode
This commit is contained in:
parent
9920f001ea
commit
913a747a2e
|
@ -581,7 +581,7 @@ class Option(OnlyOption):
|
||||||
'submulti_index: {2}'.format(_value, _index,
|
'submulti_index: {2}'.format(_value, _index,
|
||||||
submulti_index),
|
submulti_index),
|
||||||
exc_info=True)
|
exc_info=True)
|
||||||
err_msg = '{0}'.format(err)
|
err_msg = unicode('{0}')
|
||||||
if err_msg:
|
if err_msg:
|
||||||
msg = _('"{0}" is an invalid {1} for "{2}", {3}'
|
msg = _('"{0}" is an invalid {1} for "{2}", {3}'
|
||||||
'').format(_value, self._display_name,
|
'').format(_value, self._display_name,
|
||||||
|
|
Loading…
Reference in New Issue