diff --git a/recipes/hindu.recipe b/recipes/hindu.recipe index c180a3b7fd..d7f69b37dc 100644 --- a/recipes/hindu.recipe +++ b/recipes/hindu.recipe @@ -39,7 +39,10 @@ class TheHindu(BasicNewsRecipe): current_articles = [] div = soup.find('div', attrs={'id': 'left-column'}) - soup.find('span', attrs={'class': 'newsection-title'}).extract() + try: + soup.find('span', attrs={'class': 'newsection-title'}).extract() + except AttributeError: + continue # empty section soup.find('div', attrs={'id': 'tpnav-bar'}).extract() for x in div.findAll(['a']):