mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
This commit is contained in:
parent
cd3da5d10e
commit
6a662a5854
@ -306,6 +306,8 @@ class BasicNewsRecipe(object):
|
|||||||
'''
|
'''
|
||||||
if re.match(r'\w+://', url_or_raw):
|
if re.match(r'\w+://', url_or_raw):
|
||||||
raw = self.browser.open(url_or_raw).read()
|
raw = self.browser.open(url_or_raw).read()
|
||||||
|
if not raw:
|
||||||
|
raise RuntimeError('Could not fetch index from %s'%url_or_raw)
|
||||||
else:
|
else:
|
||||||
raw = url_or_raw
|
raw = url_or_raw
|
||||||
if not isinstance(raw, unicode) and self.encoding:
|
if not isinstance(raw, unicode) and self.encoding:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user