diff options
author | 2021-07-07 22:53:44 +0200 | |
---|---|---|
committer | 2021-07-07 22:53:44 +0200 | |
commit | cce90faf3ea394104dede886ef4bf5747573a612 (patch) | |
tree | b2a7cc7dcf24b1fd1c576b0db0580e79ed020f1b | |
parent | Emit tag if only one fuzzy match is found (diff) |
Fix leading space in str of identifiers without a group
This issue doesn't show on discord as whitespace is collapsed in embeds,
but could be seen in logs
-rw-r--r-- | bot/exts/info/tags.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/info/tags.py b/bot/exts/info/tags.py index 6971397d4..0bedd6e10 100644 --- a/bot/exts/info/tags.py +++ b/bot/exts/info/tags.py @@ -63,7 +63,10 @@ class TagIdentifier(NamedTuple): return fuzzy_score def __str__(self) -> str: - return f"{self.group or ''} {self.name}" + if self.group is not None: + return f"{self.group} {self.name}" + else: + return self.name class Tag: |