From a7dc1400c487256e3cc9138132f550e4fd1f0bdf Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 15 Jan 2024 14:13:33 +0000 Subject: [PATCH] fix(aurora): fixed UnboundLocalError in configuration.embed._addrole --- aurora/configuration/embed.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aurora/configuration/embed.py b/aurora/configuration/embed.py index 8af50ed..e513e4b 100644 --- a/aurora/configuration/embed.py +++ b/aurora/configuration/embed.py @@ -82,12 +82,12 @@ async def _addrole(guild: Guild) -> str: """Generates a configuration menu field value for a guild's addrole whitelist.""" whitelist = await config.guild(guild).addrole_roles() - if blacklist: - blacklist = [guild.get_role(role).mention or error(f"`{role}` (Not Found)") for role in whitelist] - blacklist = '\n'.join(blacklist) + if whitelist: + whitelist = [guild.get_role(role).mention or error(f"`{role}` (Not Found)") for role in whitelist] + whitelist = '\n'.join(whitelist) else: - blacklist = warning("No roles are on the addrole whitelist!") - return blacklist + whitelist = warning("No roles are on the addrole whitelist!") + return whitelist async def _immune(guild: Guild) -> str: """Generates a configuration menu field value for a guild's immune roles."""