This commit is contained in:
unkn0w7n 2024-11-20 14:28:53 +05:30
parent 48c1bbcc13
commit 5bd6b15af8
2 changed files with 4 additions and 2 deletions

View File

@ -306,7 +306,8 @@ class Economist(BasicNewsRecipe):
raise ValueError(edition_date, ' not found.')
raw = self.index_to_soup(url, raw=True)
except ValueError:
raise ValueError('Try web edition.')
self.from_archive = True
return self.parse_web_index()
else:
raise ValueError('Server is not reachable, try again after some time.')
ans = self.economist_parse_index(raw)

View File

@ -306,7 +306,8 @@ class Economist(BasicNewsRecipe):
raise ValueError(edition_date, ' not found.')
raw = self.index_to_soup(url, raw=True)
except ValueError:
raise ValueError('Try web edition.')
self.from_archive = True
return self.parse_web_index()
else:
raise ValueError('Server is not reachable, try again after some time.')
ans = self.economist_parse_index(raw)