[commands] Fix NameError when given an invalid prefix.

Closes #775
This commit is contained in:
Rapptz 2017-09-12 04:22:13 -04:00
parent 3cd1fdc1eb
commit e24914be0b

View File

@ -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