diff --git a/newsdaemon.py b/newsdaemon.py index c0a6e8120..695eaef71 100644 --- a/newsdaemon.py +++ b/newsdaemon.py @@ -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,