[V3 Core] Catch errors when reloading (#1225)

This commit is contained in:
Tobotimus
2018-01-15 15:04:09 +11:00
committed by palmtree5
parent ffea55265d
commit 980e8eeb3e

View File

@@ -224,8 +224,8 @@ class Core:
" cog path."))
return
self.cleanup_and_refresh_modules(spec.name)
try:
self.cleanup_and_refresh_modules(spec.name)
ctx.bot.load_extension(spec)
except Exception as e:
log.exception("Package reloading failed", exc_info=e)