From e24914be0b4eb64599a4dd4037505411adf66f28 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 12 Sep 2017 04:22:13 -0400 Subject: [PATCH] [commands] Fix NameError when given an invalid prefix. Closes #775 --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 5b872f88c..048b2f4dc 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -809,7 +809,7 @@ class BotBase(GroupMixin): ret = [p for p in ret if p] if not ret: - raise ClientException('invalid prefix (could be an empty string, empty list, or None)') + raise discord.ClientException('invalid prefix (could be an empty string, empty list, or None)') return ret