Restore exception handling for newswire update

merge-requests/30/head
Bob Mottram 2020-10-04 22:33:08 +01:00
parent 03ae084037
commit 8078177a0f
1 changed files with 6 additions and 6 deletions

View File

@ -194,12 +194,12 @@ def runNewswireDaemon(baseDir: str, httpd):
# try to update the feeds
newNewswire = None
# try:
newNewswire = getDictFromNewswire(httpd.session, baseDir)
# except BaseException:
# print('WARN: unable to update newswire')
# time.sleep(120)
# continue
try:
newNewswire = getDictFromNewswire(httpd.session, baseDir)
except BaseException:
print('WARN: unable to update newswire')
time.sleep(120)
continue
httpd.newswire = newNewswire
print('Newswire updated')