This commit is contained in:
Kovid Goyal 2010-09-20 09:40:47 -06:00
parent 231aab9561
commit 8bd6866289

View File

@ -70,10 +70,13 @@ class WallStreetJournal(BasicNewsRecipe):
def wsj_add_feed(self,feeds,title,url): def wsj_add_feed(self,feeds,title,url):
self.log('Found section:', title) self.log('Found section:', title)
if url.endswith('whatsnews'): try:
articles = self.wsj_find_wn_articles(url) if url.endswith('whatsnews'):
else: articles = self.wsj_find_wn_articles(url)
articles = self.wsj_find_articles(url) else:
articles = self.wsj_find_articles(url)
except:
articles = []
if articles: if articles:
feeds.append((title, articles)) feeds.append((title, articles))
return feeds return feeds