fix(aurora): use a tuple to catch errors, not a list
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 45s

This commit is contained in:
Seaswimmer 2024-01-01 12:17:27 -05:00
parent 4e989bfd9b
commit d2e7d755e8
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

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