From d2e7d755e8a006bbbd12ba91fd4485c7dd5b7fc3 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 1 Jan 2024 12:17:27 -0500 Subject: [PATCH] fix(aurora): use a tuple to catch errors, not a list --- aurora/aurora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index 5534841..0638b23 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -974,7 +974,7 @@ class Aurora(commands.Cog): await user.send(embed=embed) except discord.errors.HTTPException: pass - except [discord.errors.NotFound, discord.errors.Forbidden, discord.errors.HTTPException] as e: + except (discord.errors.NotFound, discord.errors.Forbidden, discord.errors.HTTPException) as e: logger.error("Failed to unban %s#%s (%s) from %s (%s)\n%s", user.name, user.discriminator, user.id, guild.name, guild.id, e) expiry_query = f"UPDATE `moderation_{guild.id}` SET expired = 1 WHERE (end_timestamp != 0 AND end_timestamp <= ? AND expired = 0 AND moderation_type != 'BLACKLIST') OR (expired = 0 AND resolved = 1 AND moderation_type != 'BLACKLIST')"