diff options
| author | Rapptz <[email protected]> | 2017-09-12 04:22:13 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-09-12 04:22:13 -0400 |
| commit | e24914be0b4eb64599a4dd4037505411adf66f28 (patch) | |
| tree | 1db0e7132591ff13bab1cb8f4a7b838b7570dda7 | |
| parent | Document new features for guilds. (diff) | |
| download | discord.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.py | 2 |
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 |