added try/except when adding cog

This commit is contained in:
phixxy 2024-01-27 21:49:33 -08:00
parent 09f0ea15b9
commit 25914ee735

View file

@ -358,4 +358,8 @@ class PhixxyCom(commands.Cog):
await ctx.send(output)
async def setup(bot):
try:
await bot.add_cog(PhixxyCom(bot))
bot.logger.info("Successfully added PhixxyCom Cog")
except:
bot.logger.info("Failed to load PhixxyCom Cog")