We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeb4f4c commit e4bcbe5Copy full SHA for e4bcbe5
1 file changed
readability/htmls.py
@@ -43,7 +43,7 @@ def norm_title(title):
43
44
def get_title(doc):
45
title = doc.find('.//title')
46
- if title is None or len(title.text) == 0:
+ if title is None or title.text is None or len(title.text) == 0:
47
return '[no-title]'
48
49
return norm_title(title.text)
0 commit comments