aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-05-22 14:09:39 +0100
committerGravatar GitHub <[email protected]>2022-05-22 14:09:39 +0100
commitb91820a30af9dcae0c1952432639661889c74970 (patch)
treea4b01e744b787a5ef220d5941be09db17036cc05
parentBump malformed API response from debug to error log (#2175) (diff)
parentEnsure correct tag information is sent to statsd (diff)
Merge pull request #2177 from python-discord/fix-tag-stats
Ensure correct tag information is sent to statsd
-rw-r--r--bot/exts/info/tags.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/exts/info/tags.py b/bot/exts/info/tags.py
index e89ffafb1..5d7467caf 100644
--- a/bot/exts/info/tags.py
+++ b/bot/exts/info/tags.py
@@ -278,7 +278,11 @@ class Tags(Cog):
if tag is None and tag_identifier.group is not None:
# Try exact match with only the name
- tag = self.tags.get(TagIdentifier(None, tag_identifier.group))
+ name_only_identifier = TagIdentifier(None, tag_identifier.group)
+ tag = self.tags.get(name_only_identifier)
+ if tag:
+ # Ensure the correct tag information is sent to statsd
+ tag_identifier = name_only_identifier
if tag is None and len(filtered_tags) == 1:
tag_identifier = filtered_tags[0][0]