[FIX] tools.convert: use tools.ustr() instead of str() on exceptions.

bzr revid: vmt@openerp.com-20130225164028-d48k5yheuoph1vm3
This commit is contained in:
Vo Minh Thu 2013-02-25 17:40:28 +01:00
parent df7c209164
commit b71457e258
1 changed files with 1 additions and 1 deletions

View File

@ -848,7 +848,7 @@ form: module.record_id""" % (xml_id,)
except Exception, e:
self.cr.rollback()
exc_info = sys.exc_info()
raise ParseError, (str(e), etree.tostring(rec).rstrip(), rec.getroottree().docinfo.URL, rec.sourceline), exc_info[2]
raise ParseError, (misc.ustr(e), etree.tostring(rec).rstrip(), rec.getroottree().docinfo.URL, rec.sourceline), exc_info[2]
return True
def __init__(self, cr, module, idref, mode, report=None, noupdate=False):