From 05f1558e85bf0b56c81d0b43b9998eb8fb05947b Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Thu, 5 Oct 2017 15:03:15 +0200 Subject: [PATCH] correctly detect article key image --- screenless/bureau/publications/publications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/publications/publications.py b/screenless/bureau/publications/publications.py index e01c07e..c017dc1 100644 --- a/screenless/bureau/publications/publications.py +++ b/screenless/bureau/publications/publications.py @@ -228,7 +228,7 @@ class Publications(Bureau): og_data = self._get_ogdata(entry.link) if hasattr(entry, "media_thumbnail"): entry.img = entry.media_thumbnail[-1]["url"] - elif hasattr(og_data, "image"): + elif "image" in og_data: entry.img = og_data["image"] else: entry.img = " "