mirror of https://gitlab.com/bashrc2/epicyon
Test
parent
7703a002cd
commit
3812131758
|
@ -712,18 +712,18 @@ def runNewswireDaemon(baseDir: str, httpd,
|
||||||
|
|
||||||
# try to update the feeds
|
# try to update the feeds
|
||||||
newNewswire = None
|
newNewswire = None
|
||||||
try:
|
# try:
|
||||||
newNewswire = \
|
newNewswire = \
|
||||||
getDictFromNewswire(httpd.session, baseDir, domain,
|
getDictFromNewswire(httpd.session, baseDir, domain,
|
||||||
httpd.maxNewswirePostsPerSource,
|
httpd.maxNewswirePostsPerSource,
|
||||||
httpd.maxNewswireFeedSizeKb,
|
httpd.maxNewswireFeedSizeKb,
|
||||||
httpd.maxTags,
|
httpd.maxTags,
|
||||||
httpd.maxFeedItemSizeKb,
|
httpd.maxFeedItemSizeKb,
|
||||||
httpd.maxNewswirePosts)
|
httpd.maxNewswirePosts)
|
||||||
except Exception as e:
|
# except Exception as e:
|
||||||
print('WARN: unable to update newswire ' + str(e))
|
# print('WARN: unable to update newswire ' + str(e))
|
||||||
time.sleep(120)
|
# time.sleep(120)
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
if not httpd.newswire:
|
if not httpd.newswire:
|
||||||
if os.path.isfile(newswireStateFilename):
|
if os.path.isfile(newswireStateFilename):
|
||||||
|
|
1
tests.py
1
tests.py
|
@ -2400,7 +2400,6 @@ def testParseFeedDate():
|
||||||
def runAllTests():
|
def runAllTests():
|
||||||
print('Running tests...')
|
print('Running tests...')
|
||||||
testParseFeedDate()
|
testParseFeedDate()
|
||||||
return
|
|
||||||
testFirstParagraphFromString()
|
testFirstParagraphFromString()
|
||||||
testGetNewswireTags()
|
testGetNewswireTags()
|
||||||
testHashtagRuleTree()
|
testHashtagRuleTree()
|
||||||
|
|
Loading…
Reference in New Issue