diff --git a/frappe/website/doctype/blog_post/blog_post.py b/frappe/website/doctype/blog_post/blog_post.py index d24c3a5e8e..4596c60710 100644 --- a/frappe/website/doctype/blog_post/blog_post.py +++ b/frappe/website/doctype/blog_post/blog_post.py @@ -124,7 +124,7 @@ class BlogPost(WebsiteGenerator): context.comment_text = _('{0} comments').format(len(context.comment_list)) def set_read_time(self): - content = self.content or self.content_html + content = self.content or self.content_html or '' if self.content_type == "Markdown": content = markdown(self.content_md)