forked from indymedia/epicyon
Show exception
parent
f040362ef8
commit
96828b6727
|
@ -412,7 +412,7 @@ def runNewswireDaemon(baseDir: str, httpd, unused: str):
|
||||||
"""Periodically updates RSS feeds
|
"""Periodically updates RSS feeds
|
||||||
"""
|
"""
|
||||||
# initial sleep to allow the system to start up
|
# initial sleep to allow the system to start up
|
||||||
time.sleep(70)
|
time.sleep(50)
|
||||||
while True:
|
while True:
|
||||||
# has the session been created yet?
|
# has the session been created yet?
|
||||||
if not httpd.session:
|
if not httpd.session:
|
||||||
|
@ -424,8 +424,8 @@ def runNewswireDaemon(baseDir: str, httpd, unused: str):
|
||||||
newNewswire = None
|
newNewswire = None
|
||||||
try:
|
try:
|
||||||
newNewswire = getDictFromNewswire(httpd.session, baseDir)
|
newNewswire = getDictFromNewswire(httpd.session, baseDir)
|
||||||
except BaseException:
|
except Exception as e:
|
||||||
print('WARN: unable to update newswire')
|
print('WARN: unable to update newswire ' + str(e))
|
||||||
time.sleep(120)
|
time.sleep(120)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue