mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also ignore download failures for sections
This commit is contained in:
parent
bc3255573a
commit
29e08ac33b
@ -258,9 +258,9 @@ class NewYorkTimes(BasicNewsRecipe):
|
||||
feeds = []
|
||||
for section_title, slug in web_sections:
|
||||
query_id = '/section/' + slug
|
||||
try:
|
||||
data = self.nyt_graphql_query(query_id)
|
||||
self.log('Section:', section_title)
|
||||
try:
|
||||
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)
|
||||
|
@ -258,9 +258,9 @@ class NewYorkTimes(BasicNewsRecipe):
|
||||
feeds = []
|
||||
for section_title, slug in web_sections:
|
||||
query_id = '/section/' + slug
|
||||
try:
|
||||
data = self.nyt_graphql_query(query_id)
|
||||
self.log('Section:', section_title)
|
||||
try:
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user