aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/info/tags.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/info/tags.py b/bot/exts/info/tags.py
index 8d4073342..50e63b479 100644
--- a/bot/exts/info/tags.py
+++ b/bot/exts/info/tags.py
@@ -329,12 +329,12 @@ class Tags(Cog):
# Remove group separator line if no tags in the previous group were accessible by the user.
result_lines.pop()
# A new group began, add a separator with the group name.
- if identifier.group is not None:
+ current_group = identifier.group
+ if current_group is not None:
group_accessible = False
- result_lines.append(f"\n\N{BULLET} **{identifier.group}**")
+ result_lines.append(f"\n\N{BULLET} **{current_group}**")
else:
result_lines.append("\n\N{BULLET}")
- current_group = identifier.group
if tag.accessible_by(ctx.author):
result_lines.append(f"**\N{RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK}** {identifier.name}")