[FIX] tools.convert: use tools.ustr() instead of str() on exceptions.
bzr revid: vmt@openerp.com-20130225164028-d48k5yheuoph1vm3
This commit is contained in:
parent
df7c209164
commit
b71457e258
|
@ -848,7 +848,7 @@ form: module.record_id""" % (xml_id,)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.cr.rollback()
|
self.cr.rollback()
|
||||||
exc_info = sys.exc_info()
|
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
|
return True
|
||||||
|
|
||||||
def __init__(self, cr, module, idref, mode, report=None, noupdate=False):
|
def __init__(self, cr, module, idref, mode, report=None, noupdate=False):
|
||||||
|
|
Loading…
Reference in New Issue