Skip to content

Commit

Permalink
Fixes #53
Browse files Browse the repository at this point in the history
  • Loading branch information
buriy committed Mar 16, 2015
1 parent aeb4f4c commit e4bcbe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readability/htmls.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def norm_title(title):

def get_title(doc):
title = doc.find('.//title')
if title is None or len(title.text) == 0:
if title is None or title.text is None or len(title.text) == 0:
return '[no-title]'

return norm_title(title.text)
Expand Down

0 comments on commit e4bcbe5

Please sign in to comment.