From f9e807957f6ef211f36cf1254b915dc16e3a0803 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 3 May 2024 20:28:26 -0400 Subject: [PATCH] fix(aurora): why was I trying to raise an exception???? --- aurora/aurora.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index 446c9a6..64987a6 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -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}"