From 6631c04551dc41a3c3f5bfb2269be90f67093115 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 3 Nov 2020 21:53:29 +0000 Subject: [PATCH] Save only if newswire exists --- newsdaemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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,