Also fix clean_html so that it doesn't barf on an empty string.

This commit is contained in:
Christopher Allan Webber 2011-06-21 08:20:05 -05:00
parent a2c37d0a78
commit 4fd18da0a8

View File

@ -373,6 +373,10 @@ HTML_CLEANER = Cleaner(
def clean_html(html): def clean_html(html):
# clean_html barfs on an empty string
if not html:
return u''
return HTML_CLEANER.clean_html(html) return HTML_CLEANER.clean_html(html)