From 63b058baa6859176d99bd22db7f34b9aadff5afc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 29 Sep 2022 21:23:03 +0530 Subject: [PATCH] ... --- recipes/spectator_magazine.recipe | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/spectator_magazine.recipe b/recipes/spectator_magazine.recipe index 798c8f15ed..3410b179ec 100644 --- a/recipes/spectator_magazine.recipe +++ b/recipes/spectator_magazine.recipe @@ -83,6 +83,8 @@ class spectator(BasicNewsRecipe): )): a = div.find('a', attrs={ 'href': lambda x: x and x.startswith(('/article/', '/illustration/'))}) + if a is None: + continue url = absurl(a['href']) title = self.tag_to_string(div.find('div', **prefixed_classes( 'ArticleCard_spectator-article-card__headline__'))).strip()