mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Trimmed the issue log
This commit is contained in:
parent
8a9f3bb0d2
commit
2ddd02ac0c
|
@ -129,7 +129,7 @@ class RcQueue:
|
||||||
current_domain["query"].append(QueuedWiki(db_wiki["wiki"], 20))
|
current_domain["query"].append(QueuedWiki(db_wiki["wiki"], 20))
|
||||||
except KeyError:
|
except KeyError:
|
||||||
await self.start_group(domain, [QueuedWiki(db_wiki["wiki"], 20)])
|
await self.start_group(domain, [QueuedWiki(db_wiki["wiki"], 20)])
|
||||||
logger.info("A new domain group has been added since last time, adding it to the domain_list and starting a task...")
|
logger.info("A new domain group ({}) has been added since last time, adding it to the domain_list and starting a task...".format(domain))
|
||||||
except ListFull:
|
except ListFull:
|
||||||
full.append(domain)
|
full.append(domain)
|
||||||
current_domain["last_rowid"] = db_wiki["ROWID"]
|
current_domain["last_rowid"] = db_wiki["ROWID"]
|
||||||
|
@ -325,7 +325,6 @@ async def discussion_handler():
|
||||||
try:
|
try:
|
||||||
feeds_response = await local_wiki.fetch_feeds(db_wiki["wikiid"], session)
|
feeds_response = await local_wiki.fetch_feeds(db_wiki["wikiid"], session)
|
||||||
except (WikiServerError, WikiError):
|
except (WikiServerError, WikiError):
|
||||||
logger.error("Exeption when fetching the wiki")
|
|
||||||
continue # ignore this wiki if it throws errors
|
continue # ignore this wiki if it throws errors
|
||||||
try:
|
try:
|
||||||
discussion_feed_resp = await feeds_response.json(encoding="UTF-8")
|
discussion_feed_resp = await feeds_response.json(encoding="UTF-8")
|
||||||
|
|
|
@ -60,7 +60,7 @@ class Wiki:
|
||||||
response = await session.get(url_path, params=params)
|
response = await session.get(url_path, params=params)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
except (aiohttp.ClientConnectionError, aiohttp.ServerTimeoutError, asyncio.TimeoutError, aiohttp.ClientResponseError):
|
except (aiohttp.ClientConnectionError, aiohttp.ServerTimeoutError, asyncio.TimeoutError, aiohttp.ClientResponseError):
|
||||||
logger.exception("A connection error occurred while requesting {}".format(url_path))
|
logger.error("A connection error occurred while requesting {}".format(url_path))
|
||||||
raise WikiServerError
|
raise WikiServerError
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue