[FIX] report_webkit: correctly catch error in rendering

bzr revid: mat@openerp.com-20130926122437-nx7idmpjmm8k1r9d
This commit is contained in:
Martin Trigaux 2013-09-26 14:24:37 +02:00
parent b325c63309
commit 861c9b9e70
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ class WebKitParser(report_sxw):
try :
html = body_mako_tpl.render(dict(self.parser_instance.localcontext))
htmls.append(html)
except Exception:
except Exception, e:
msg = u"%s" % e
_logger.error(msg)
raise except_osv(_('Webkit render!'), msg)