From 3903b8b605510f5267db8f80b75a0df2e432acb0 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Wed, 16 Apr 2025 09:20:33 +0530 Subject: [PATCH] Update Economist --- recipes/economist.recipe | 4 +++- recipes/economist_free.recipe | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index 74ef9c0e5f..2a2c58ec3b 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -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) diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index 74ef9c0e5f..2a2c58ec3b 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -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)