aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-08-09 21:22:56 +0200
committerGravatar Numerlor <[email protected]>2021-08-09 21:37:54 +0200
commit8264fda1bbb28c91b811423684e58472aca1de55 (patch)
treee41c467e8378fc5f11ec67d10ec6314e942f1287
parentAssign converters to their return values during type checking (diff)
fix wrong name being interpolated
-rw-r--r--bot/converters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/converters.py b/bot/converters.py
index 3f6ed5128..566e56220 100644
--- a/bot/converters.py
+++ b/bot/converters.py
@@ -609,7 +609,7 @@ def _snowflake_from_regex(pattern: t.Pattern, arg: str) -> int:
"""
match = pattern.match(arg)
if not match:
- raise BadArgument(f"Mention {str!r} is invalid.")
+ raise BadArgument(f"Mention {arg!r} is invalid.")
return int(match.group(1))