mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Economist
This commit is contained in:
parent
3937e2bfea
commit
3903b8b605
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user