1
0
Fork 0
mirror of synced 2024-06-26 10:10:44 +12:00

Corrected issue where suppressed error hid an issue with which list was sent to the recursive calls

This commit is contained in:
Phxntxm 2016-12-01 22:56:57 -06:00
parent e283a5160c
commit dd3405141b

View file

@ -15,7 +15,7 @@ def get_all_commands(bot):
def _get_all_commands(command):
yield command.qualified_name
try:
for cmd in command.commands:
for cmd in command.commands.values():
yield from _get_all_commands(cmd)
except AttributeError:
pass