[V3] Fix logic issue with [p]load (#1460)

This commit is contained in:
Will 2018-04-02 21:09:17 -04:00 committed by palmtree5
parent 772590c41c
commit d79d8fbbea

View File

@ -342,9 +342,7 @@ class Core:
#await ctx.send(_("No module named '{}' was found in any" #await ctx.send(_("No module named '{}' was found in any"
# " cog path.").format(c)) # " cog path.").format(c))
if len(cogspecs) == 0: if len(cogspecs) > 0:
return
for spec, name in cogspecs: for spec, name in cogspecs:
try: try:
await ctx.bot.load_extension(spec) await ctx.bot.load_extension(spec)