mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Another one of those
This commit is contained in:
parent
47722de473
commit
7492229eb2
|
@ -241,7 +241,7 @@ async def handle_discord_http(code: int, formatted_embed: str, result: aiohttp.C
|
||||||
elif code == 401 or code == 404: # HTTP UNAUTHORIZED AND NOT FOUND
|
elif code == 401 or code == 404: # HTTP UNAUTHORIZED AND NOT FOUND
|
||||||
logger.error("Webhook URL is invalid or no longer in use, please replace it with proper one.")
|
logger.error("Webhook URL is invalid or no longer in use, please replace it with proper one.")
|
||||||
async with db.pool().acquire() as connection:
|
async with db.pool().acquire() as connection:
|
||||||
await connection.execute("DELETE FROM rcgcdw WHERE webhook = $1", (webhook_url,))
|
await connection.execute("DELETE FROM rcgcdw WHERE webhook = $1", webhook_url)
|
||||||
await webhook_removal_monitor(webhook_url, code)
|
await webhook_removal_monitor(webhook_url, code)
|
||||||
return 1
|
return 1
|
||||||
elif code == 429:
|
elif code == 429:
|
||||||
|
|
Loading…
Reference in a new issue