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