aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/lib/article_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/lib/article_utils.py b/src/web/lib/article_utils.py
index 81a0b145..2c5ea8c3 100644
--- a/src/web/lib/article_utils.py
+++ b/src/web/lib/article_utils.py
@@ -52,7 +52,8 @@ async def construct_article(entry, feed, fields=None, fetch=True):
#push_in_article('content', clean_urls(article['content'], link))
push_in_article('content', article['content'])
push_in_article('tags', {tag.get('term').strip()
- for tag in entry.get('tags', [])})
+ for tag in entry.get('tags', []) \
+ if tag and tag.get('term', False)})
return article
bgstack15