[commands] GroupView.get_command shouldn't raise errors for empty names

This commit is contained in:
jack1142 2020-07-12 18:31:51 +02:00 committed by Rapptz
parent 4a686e11ba
commit 901290c8a2

View File

@ -1180,6 +1180,8 @@ class GroupMixin:
return self.all_commands.get(name)
names = name.split()
if not names:
return None
obj = self.all_commands.get(names[0])
if not isinstance(obj, GroupMixin):
return obj