Save only if newswire exists

merge-requests/8/head
Bob Mottram 2020-11-03 21:53:29 +00:00
parent 2529bce3af
commit 6631c04551
1 changed files with 3 additions and 2 deletions

View File

@ -725,8 +725,9 @@ def runNewswireDaemon(baseDir: str, httpd,
mergeWithPreviousNewswire(httpd.newswire, newNewswire)
httpd.newswire = newNewswire
saveJson(httpd.newswire, newswireStateFilename)
print('Newswire updated')
if newNewswire:
saveJson(httpd.newswire, newswireStateFilename)
print('Newswire updated')
convertRSStoActivityPub(baseDir,
httpPrefix, domain, port,