forked from cswimr/SeaCogs
fix(aurora): use a tuple to catch errors, not a list
This commit is contained in:
parent
4e989bfd9b
commit
d2e7d755e8
1 changed files with 1 additions and 1 deletions
|
@ -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')"
|
||||
|
|
Loading…
Reference in a new issue