Make sure the summary is always there
This commit is contained in:
parent
0accbfa66e
commit
18efdb1c70
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,8 @@ class RssUpdates(HttpRequest):
|
||||||
logging.info('Processed new item from RSS feed <{}>: "{}"'
|
logging.info('Processed new item from RSS feed <{}>: "{}"'
|
||||||
.format(self.url, entry.title))
|
.format(self.url, entry.title))
|
||||||
|
|
||||||
|
entry.summary = entry.summary if hasattr(entry, 'summary') else None
|
||||||
|
|
||||||
if self.mercury_api_key:
|
if self.mercury_api_key:
|
||||||
entry.content = self._parse_entry_content(entry.link)
|
entry.content = self._parse_entry_content(entry.link)
|
||||||
elif hasattr(entry, 'summary'):
|
elif hasattr(entry, 'summary'):
|
||||||
|
|
Loading…
Reference in a new issue