main
Bob Mottram 2020-11-22 20:28:32 +00:00
parent 7703a002cd
commit 3812131758
2 changed files with 12 additions and 13 deletions

View File

@ -712,18 +712,18 @@ def runNewswireDaemon(baseDir: str, httpd,
# try to update the feeds
newNewswire = None
try:
newNewswire = \
getDictFromNewswire(httpd.session, baseDir, domain,
httpd.maxNewswirePostsPerSource,
httpd.maxNewswireFeedSizeKb,
httpd.maxTags,
httpd.maxFeedItemSizeKb,
httpd.maxNewswirePosts)
except Exception as e:
print('WARN: unable to update newswire ' + str(e))
time.sleep(120)
continue
# try:
newNewswire = \
getDictFromNewswire(httpd.session, baseDir, domain,
httpd.maxNewswirePostsPerSource,
httpd.maxNewswireFeedSizeKb,
httpd.maxTags,
httpd.maxFeedItemSizeKb,
httpd.maxNewswirePosts)
# except Exception as e:
# print('WARN: unable to update newswire ' + str(e))
# time.sleep(120)
# continue
if not httpd.newswire:
if os.path.isfile(newswireStateFilename):

View File

@ -2400,7 +2400,6 @@ def testParseFeedDate():
def runAllTests():
print('Running tests...')
testParseFeedDate()
return
testFirstParagraphFromString()
testGetNewswireTags()
testHashtagRuleTree()