From dcf2e4ab3690d96e3788a0204ff2ba5f45834482 Mon Sep 17 00:00:00 2001 From: Numerlor <25886452+Numerlor@users.noreply.github.com> Date: Mon, 2 Aug 2021 15:02:27 +0200 Subject: Move assignment to its own line instead of using an assignment expr --- bot/exts/info/tags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] -- cgit v1.2.3