mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
...
This commit is contained in:
parent
48c1bbcc13
commit
5bd6b15af8
@ -306,7 +306,8 @@ class Economist(BasicNewsRecipe):
|
|||||||
raise ValueError(edition_date, ' not found.')
|
raise ValueError(edition_date, ' not found.')
|
||||||
raw = self.index_to_soup(url, raw=True)
|
raw = self.index_to_soup(url, raw=True)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise ValueError('Try web edition.')
|
self.from_archive = True
|
||||||
|
return self.parse_web_index()
|
||||||
else:
|
else:
|
||||||
raise ValueError('Server is not reachable, try again after some time.')
|
raise ValueError('Server is not reachable, try again after some time.')
|
||||||
ans = self.economist_parse_index(raw)
|
ans = self.economist_parse_index(raw)
|
||||||
|
@ -306,7 +306,8 @@ class Economist(BasicNewsRecipe):
|
|||||||
raise ValueError(edition_date, ' not found.')
|
raise ValueError(edition_date, ' not found.')
|
||||||
raw = self.index_to_soup(url, raw=True)
|
raw = self.index_to_soup(url, raw=True)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise ValueError('Try web edition.')
|
self.from_archive = True
|
||||||
|
return self.parse_web_index()
|
||||||
else:
|
else:
|
||||||
raise ValueError('Server is not reachable, try again after some time.')
|
raise ValueError('Server is not reachable, try again after some time.')
|
||||||
ans = self.economist_parse_index(raw)
|
ans = self.economist_parse_index(raw)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user