We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9cd5fb6 + fdba8d9 commit c923995Copy full SHA for c923995
1 file changed
readability/htmls.py
@@ -57,7 +57,7 @@ def add_match(collection, text, orig):
57
58
def shorten_title(doc):
59
title = doc.find('.//title')
60
- if title is None or len(title.text) == 0:
+ if title is None or title.text is None or len(title.text) == 0:
61
return ''
62
63
title = orig = norm_title(title.text)
0 commit comments