From c59edb0f6daa918c8ca0b67b14df02208bb3e719 Mon Sep 17 00:00:00 2001 From: Aniruddha Adhikary Date: Wed, 10 Aug 2016 18:20:37 +0600 Subject: [PATCH] #258 - Handle None from opengraph title --- goose/extractors/title.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goose/extractors/title.py b/goose/extractors/title.py index a59dca92..6ef0b00d 100644 --- a/goose/extractors/title.py +++ b/goose/extractors/title.py @@ -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)