Fixed problem when message is false (i think)

bzr revid: nicolas.vanhoren@openerp.com-20120814094401-uv548xbylkfq8bun
This commit is contained in:
niv-openerp 2012-08-14 11:44:01 +02:00
parent bb09f83ec8
commit f111a51f10
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@ from pyquery import PyQuery as pq
import re
def html_sanitize(x):
if not x:
return x
root = pq("<div />")
root.html(x)
result = handle_element(root[0])