From 29e08ac33bb0948cf92f0f3bde70abf02be06f72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 10 Apr 2025 19:23:06 +0530 Subject: [PATCH] Also ignore download failures for sections --- recipes/nytimes.recipe | 4 ++-- recipes/nytimes_sub.recipe | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/nytimes.recipe b/recipes/nytimes.recipe index 4a1fa04ed7..bb16ad34a2 100644 --- a/recipes/nytimes.recipe +++ b/recipes/nytimes.recipe @@ -258,9 +258,9 @@ class NewYorkTimes(BasicNewsRecipe): feeds = [] for section_title, slug in web_sections: query_id = '/section/' + slug - data = self.nyt_graphql_query(query_id) - self.log('Section:', section_title) try: + data = self.nyt_graphql_query(query_id) + self.log('Section:', section_title) articles = parse_web_section(data, log=self.log, title=section_title) except Exception as e: self.log('Failed to parse section:', section_title, 'with error:', e) diff --git a/recipes/nytimes_sub.recipe b/recipes/nytimes_sub.recipe index 1bed84b181..82ba43a8a1 100644 --- a/recipes/nytimes_sub.recipe +++ b/recipes/nytimes_sub.recipe @@ -258,9 +258,9 @@ class NewYorkTimes(BasicNewsRecipe): feeds = [] for section_title, slug in web_sections: query_id = '/section/' + slug - data = self.nyt_graphql_query(query_id) - self.log('Section:', section_title) try: + data = self.nyt_graphql_query(query_id) + self.log('Section:', section_title) articles = parse_web_section(data, log=self.log, title=section_title) except Exception as e: self.log('Failed to parse section:', section_title, 'with error:', e)