mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1419612 [Fetch News: 'NoneType' object has no attribute 'extract'](https://bugs.launchpad.net/calibre/+bug/1419612)
This commit is contained in:
parent
df780dd8e0
commit
90f749533f
@ -39,7 +39,10 @@ class TheHindu(BasicNewsRecipe):
|
||||
current_articles = []
|
||||
|
||||
div = soup.find('div', attrs={'id': 'left-column'})
|
||||
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']):
|
||||
|
Loading…
x
Reference in New Issue
Block a user