mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
fixed improper key from last commit and added exception to handled exceptions for wiki fetching
This commit is contained in:
parent
9c696211ae
commit
b7deaeb1a7
|
@ -206,7 +206,7 @@ class Domain:
|
|||
discord_message = DiscordMessage("embed", "generic", [""])
|
||||
discord_message["title"] = "Domain scheduler exception for {} (recovered)".format(self.name)
|
||||
discord_message["description"] = "Affected wikis: {}".format(", ".join(wikis)) + "\n" + str(ex)
|
||||
discord_message["description"] = discord_message["content"][0:2000]
|
||||
discord_message["description"] = discord_message["description"][0:2000]
|
||||
# discord_message.add_field("Failure count", str(self.failures))
|
||||
discord_message.finish_embed_message()
|
||||
header = settings["header"]
|
||||
|
|
|
@ -234,7 +234,7 @@ class Wiki:
|
|||
allow_redirects=allow_redirects)
|
||||
else:
|
||||
raise BadRequest(params)
|
||||
except (aiohttp.ServerConnectionError, aiohttp.ServerTimeoutError) as exc:
|
||||
except (aiohttp.ServerConnectionError, aiohttp.ServerTimeoutError, aiohttp.ContentTypeError) as exc:
|
||||
logger.warning("Reached {error} error for request on link {url}".format(error=repr(exc),
|
||||
url=self.script_url + str(params)))
|
||||
raise ServerError
|
||||
|
|
Loading…
Reference in a new issue