From 6a662a5854e509dc32c35fb92f825d2e61b9265d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 29 Mar 2008 21:50:44 +0000 Subject: [PATCH] --- src/libprs500/web/feeds/news.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libprs500/web/feeds/news.py b/src/libprs500/web/feeds/news.py index 74c6cfd2f5..c5fbaf921f 100644 --- a/src/libprs500/web/feeds/news.py +++ b/src/libprs500/web/feeds/news.py @@ -306,6 +306,8 @@ class BasicNewsRecipe(object): ''' if re.match(r'\w+://', url_or_raw): raw = self.browser.open(url_or_raw).read() + if not raw: + raise RuntimeError('Could not fetch index from %s'%url_or_raw) else: raw = url_or_raw if not isinstance(raw, unicode) and self.encoding: