Check that items are returned

main
Bob Mottram 2020-11-03 15:04:33 +00:00
parent 4c1553e1e7
commit 5318beebf0
1 changed files with 3 additions and 2 deletions

View File

@ -589,6 +589,7 @@ def getDictFromNewswire(session, baseDir: str, domain: str,
itemsList = getRSS(baseDir, domain, session, url, itemsList = getRSS(baseDir, domain, session, url,
moderated, mirrored, moderated, mirrored,
maxPostsPerSource, maxFeedSizeKb) maxPostsPerSource, maxFeedSizeKb)
if itemsList:
for dateStr, item in itemsList.items(): for dateStr, item in itemsList.items():
result[dateStr] = item result[dateStr] = item