aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mediagoblin/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/util.py b/mediagoblin/util.py
index e964324f..91fbee0a 100644
--- a/mediagoblin/util.py
+++ b/mediagoblin/util.py
@@ -373,6 +373,10 @@ HTML_CLEANER = Cleaner(
def clean_html(html):
+ # clean_html barfs on an empty string
+ if not html:
+ return u''
+
return HTML_CLEANER.clean_html(html)