fix: Breaking patch

This commit is contained in:
Suraj Shetty 2020-05-05 10:29:34 +05:30
parent 2e0a1c7485
commit d89bbba0cb

View file

@ -14,5 +14,5 @@ def get_read_time(blog):
if blog.content_type == "Markdown":
content = markdown(blog.content_md)
total_words = len(strip_html_tags(content).split())
total_words = len(strip_html_tags(content or "").split())
return ceil(total_words/250)