aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyaggr3g470r/crawler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyaggr3g470r/crawler.py b/pyaggr3g470r/crawler.py
index 42430b5e..e6daecd4 100644
--- a/pyaggr3g470r/crawler.py
+++ b/pyaggr3g470r/crawler.py
@@ -144,6 +144,8 @@ def fetch(user, feed):
def insert_database(user, feed):
articles = yield from asyncio.async(fetch(user, feed))
+ if None is articles:
+ return []
print('inserting articles for {}'.format(feed.title))
bgstack15