aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-09-12 04:22:13 -0400
committerRapptz <[email protected]>2017-09-12 04:22:13 -0400
commite24914be0b4eb64599a4dd4037505411adf66f28 (patch)
tree1db0e7132591ff13bab1cb8f4a7b838b7570dda7
parentDocument new features for guilds. (diff)
downloaddiscord.py-e24914be0b4eb64599a4dd4037505411adf66f28.tar.xz
discord.py-e24914be0b4eb64599a4dd4037505411adf66f28.zip
[commands] Fix NameError when given an invalid prefix.
Closes #775
-rw-r--r--discord/ext/commands/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index 5b872f88..048b2f4d 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