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: