added try/except when adding cog
This commit is contained in:
parent
09f0ea15b9
commit
25914ee735
1 changed files with 5 additions and 1 deletions
|
|
@ -358,4 +358,8 @@ class PhixxyCom(commands.Cog):
|
||||||
await ctx.send(output)
|
await ctx.send(output)
|
||||||
|
|
||||||
async def setup(bot):
|
async def setup(bot):
|
||||||
await bot.add_cog(PhixxyCom(bot))
|
try:
|
||||||
|
await bot.add_cog(PhixxyCom(bot))
|
||||||
|
bot.logger.info("Successfully added PhixxyCom Cog")
|
||||||
|
except:
|
||||||
|
bot.logger.info("Failed to load PhixxyCom Cog")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue