aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/cogs/utils.py b/bot/cogs/utils.py
index 49fe6d344..8ea972145 100644
--- a/bot/cogs/utils.py
+++ b/bot/cogs/utils.py
@@ -250,6 +250,9 @@ class Utils(Cog):
best_match = line
match_index = index
+ if not best_match:
+ raise BadArgument("I didn't get a match! Please try again with a different search term.")
+
embed.title += f" (line {match_index}):"
embed.description = best_match
await ctx.send(embed=embed)