aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-08-02 15:13:46 +0200
committerGravatar Numerlor <[email protected]>2021-08-02 15:13:46 +0200
commit5cbb7d20713c0a7027c2e0909ddcdb6e02dbddc2 (patch)
tree810560b2ee0fe7694db22d03141350e452986daf
parentUse "message" in docstring for consistency (diff)
Move `current_group` assignment and use it instead of `identifier.group`
-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}")