Another one of those

This commit is contained in:
Frisk 2021-03-20 14:14:18 +01:00
parent 47722de473
commit 7492229eb2
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -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: