[IMP] tools.misc: typo in tools.ustr error message

bzr revid: odo@openerp.com-20101109110436-aftj49f65zac5qwe
This commit is contained in:
Olivier Dony 2010-11-09 12:04:36 +01:00
parent f886f8f43b
commit fc065933c7
1 changed files with 2 additions and 2 deletions

View File

@ -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):