[IMP] tools.misc: typo in tools.ustr error message
bzr revid: odo@openerp.com-20101109110436-aftj49f65zac5qwe
This commit is contained in:
parent
f886f8f43b
commit
fc065933c7
|
@ -864,14 +864,14 @@ def ustr(value, hint_encoding='utf-8'):
|
|||
try:
|
||||
return unicode(value)
|
||||
except Exception:
|
||||
raise UnicodeError('unable de to convert %r' % (value,))
|
||||
raise UnicodeError('unable to convert %r' % (value,))
|
||||
|
||||
for ln in get_encodings(hint_encoding):
|
||||
try:
|
||||
return unicode(value, ln)
|
||||
except Exception:
|
||||
pass
|
||||
raise UnicodeError('unable de to convert %r' % (value,))
|
||||
raise UnicodeError('unable to convert %r' % (value,))
|
||||
|
||||
|
||||
def exception_to_unicode(e):
|
||||
|
|
Loading…
Reference in New Issue