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),
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue