[Docs] Cog Manager (#901)

* Cog manager docs

* Oops, kinda need this
This commit is contained in:
Will
2017-08-12 18:03:29 -04:00
committed by palmtree5
parent 85b0f34395
commit f78c33445c
4 changed files with 62 additions and 38 deletions

View File

@@ -11,8 +11,6 @@ import discord
import aiohttp
import asyncio
from core.cog_manager import NoModuleFound
log = logging.getLogger("red")
OWNER_DISCLAIMER = ("⚠ **Only** the person who is hosting Red should be "
@@ -30,7 +28,7 @@ class Core:
"""Loads a package"""
try:
spec = await ctx.bot.cog_mgr.find_cog(cog_name)
except NoModuleFound:
except RuntimeError:
await ctx.send("No module by that name was found in any"
" cog path.")
return