Consistent error message

merge-requests/30/head
Bob Mottram 2021-05-20 12:43:26 +01:00
parent cfbd7f86eb
commit 859ec14ed7
1 changed files with 3 additions and 3 deletions

View File

@ -3962,7 +3962,7 @@ class PubServer(BaseHTTPRequestHandler):
saveJson(self.server.newswire, saveJson(self.server.newswire,
newswireStateFilename) newswireStateFilename)
except Exception as e: except Exception as e:
print('ERROR saving newswire state, ' + str(e)) print('ERROR: saving newswire state, ' + str(e))
# remove any previous cached news posts # remove any previous cached news posts
newsId = \ newsId = \
@ -6520,7 +6520,7 @@ class PubServer(BaseHTTPRequestHandler):
try: try:
saveJson(newswire, newswireStateFilename) saveJson(newswire, newswireStateFilename)
except Exception as e: except Exception as e:
print('ERROR saving newswire state, ' + str(e)) print('ERROR: saving newswire state, ' + str(e))
if filename: if filename:
saveJson(newswireItem[votesIndex], saveJson(newswireItem[votesIndex],
filename + '.votes') filename + '.votes')
@ -6575,7 +6575,7 @@ class PubServer(BaseHTTPRequestHandler):
try: try:
saveJson(newswire, newswireStateFilename) saveJson(newswire, newswireStateFilename)
except Exception as e: except Exception as e:
print('ERROR saving newswire state, ' + str(e)) print('ERROR: saving newswire state, ' + str(e))
if filename: if filename:
saveJson(newswireItem[votesIndex], saveJson(newswireItem[votesIndex],
filename + '.votes') filename + '.votes')