From 5bd6b15af83374f969c5f14e7864460845cb9556 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:28:53 +0530 Subject: [PATCH] ... --- recipes/economist.recipe | 3 ++- recipes/economist_free.recipe | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index fe49025a67..392c029a7e 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -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) diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index fe49025a67..392c029a7e 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -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)