aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-08-02 15:02:27 +0200
committerGravatar Numerlor <[email protected]>2021-08-02 15:02:27 +0200
commitdcf2e4ab3690d96e3788a0204ff2ba5f45834482 (patch)
tree0a53612191920b354a8fb87d4e90419ac284832d
parentDo not pass in embed as a kwarg (diff)
Move assignment to its own line instead of using an assignment expr
-rw-r--r--bot/exts/info/tags.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/info/tags.py b/bot/exts/info/tags.py
index 34592adde..884e8e10f 100644
--- a/bot/exts/info/tags.py
+++ b/bot/exts/info/tags.py
@@ -275,7 +275,8 @@ class Tags(Cog):
if tag.accessible_by(ctx.author)
]
- if (tag := self._tags.get(tag_identifier)) is None:
+ tag = self._tags.get(tag_identifier)
+ if tag is None:
if len(filtered_tags) == 1:
tag_identifier = filtered_tags[0][0]
tag = filtered_tags[0][1]