Skip to content
This repository has been archived by the owner on Dec 30, 2019. It is now read-only.

Commit

Permalink
grangier#258 - Handle None from opengraph title
Browse files Browse the repository at this point in the history
  • Loading branch information
aniruddha-adhikary authored Aug 10, 2016
1 parent 09023ec commit c59edb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goose/extractors/title.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_title(self):
title = ''

# rely on opengraph in case we have the data
if "title" in self.article.opengraph.keys():
if "title" in self.article.opengraph.keys() and self.article.opengraph['title'] is not None:
title = self.article.opengraph['title']
return self.clean_title(title)

Expand Down

0 comments on commit c59edb0

Please sign in to comment.