mirror of https://gitlab.com/bashrc2/epicyon
Restore exception handling for newswire update
parent
03ae084037
commit
8078177a0f
12
newswire.py
12
newswire.py
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue