fix(aurora): why was I trying to raise an exception????

This commit is contained in:
Seaswimmer 2024-05-03 20:28:26 -04:00
parent 8e59b5a4bd
commit f9e807957f
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -1702,7 +1702,7 @@ class Aurora(commands.Cog):
role = guild.get_role(role_id)
if role is None:
raise discord.errors.NotFound
continue
await member.remove_roles(
role, reason=f"Automatic role removal from case #{moderation_id}"
@ -1732,7 +1732,7 @@ class Aurora(commands.Cog):
role = guild.get_role(role_id)
if role is None:
raise discord.errors.NotFound
continue
await member.add_roles(
role, reason=f"Automatic role addition from case #{moderation_id}"