Browse Source

[commands] Fix NameError when given an invalid prefix.

Closes #775
pull/775/merge
Rapptz 8 years ago
parent
commit
e24914be0b
  1. 2
      discord/ext/commands/bot.py

2
discord/ext/commands/bot.py

@ -809,7 +809,7 @@ class BotBase(GroupMixin):
ret = [p for p in ret if p] ret = [p for p in ret if p]
if not ret: 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 return ret

Loading…
Cancel
Save