This commit is contained in:
Kovid Goyal 2025-04-16 11:36:14 +05:30
commit 0a887ba73e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 2 deletions

View File

@ -366,7 +366,9 @@ class Economist(BasicNewsRecipe):
return self.parse_web_index()
raw = self.index_to_soup(url, raw=True)
except Exception:
raise ValueError('Server is not reachable, try again after some time.')
self.log('Digital Edition Server is not reachable, try again after some time.')
self.from_archive = True
return self.parse_web_index()
ans = self.economist_parse_index(raw)
return self.economist_return_index(ans)

View File

@ -366,7 +366,9 @@ class Economist(BasicNewsRecipe):
return self.parse_web_index()
raw = self.index_to_soup(url, raw=True)
except Exception:
raise ValueError('Server is not reachable, try again after some time.')
self.log('Digital Edition Server is not reachable, try again after some time.')
self.from_archive = True
return self.parse_web_index()
ans = self.economist_parse_index(raw)
return self.economist_return_index(ans)