mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Write erroring wiki
This commit is contained in:
parent
d47fd6df5c
commit
92d39d451c
|
@ -1,3 +1,5 @@
|
||||||
|
import sys
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging.config
|
import logging.config
|
||||||
|
@ -299,7 +301,7 @@ async def scan_group(group: str):
|
||||||
recent_changes = recent_changes_resp['query']['recentchanges']
|
recent_changes = recent_changes_resp['query']['recentchanges']
|
||||||
recent_changes.reverse()
|
recent_changes.reverse()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logger.error("recent_changes_resp returned KeyError. skipping this check. (usually this happens when the wiki doesn't respond properly, it's pretty normal)")
|
logger.error("recent_changes_resp returned KeyError on {}. skipping this check. (usually this happens when the wiki doesn't respond properly, it's pretty normal)".format(queued_wiki.url))
|
||||||
continue
|
continue
|
||||||
if extended:
|
if extended:
|
||||||
await process_mwmsgs(recent_changes_resp, local_wiki, mw_msgs)
|
await process_mwmsgs(recent_changes_resp, local_wiki, mw_msgs)
|
||||||
|
|
Loading…
Reference in a new issue