From 5318beebf049159e0396ab90247de7956e4d5348 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 3 Nov 2020 15:04:33 +0000 Subject: [PATCH] Check that items are returned --- newswire.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/newswire.py b/newswire.py index 6cb453b7..069bc8ef 100644 --- a/newswire.py +++ b/newswire.py @@ -589,8 +589,9 @@ def getDictFromNewswire(session, baseDir: str, domain: str, itemsList = getRSS(baseDir, domain, session, url, moderated, mirrored, maxPostsPerSource, maxFeedSizeKb) - for dateStr, item in itemsList.items(): - result[dateStr] = item + if itemsList: + for dateStr, item in itemsList.items(): + result[dateStr] = item # add blogs from each user account addBlogsToNewswire(baseDir, domain, result,