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')"