If description doesn't exist, use title instead
This commit is contained in:
parent
ca64df8b20
commit
fe5216bb1f
1 changed files with 1 additions and 2 deletions
|
@ -63,8 +63,7 @@ for feed in map(feedparser.parse, FedMag):
|
|||
if not article_desc.startswith('<p>'):
|
||||
article_desc = '<p>%s</p>' % article_desc
|
||||
except AttributeError:
|
||||
print ('AttributeError. Going to next item')
|
||||
continue
|
||||
article_desc = title
|
||||
# we got
|
||||
# Tue, 20 Oct 2015 03:28:42 +0000
|
||||
# But we expect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue