mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[V3 Core] Catch errors when reloading (#1225)
This commit is contained in:
@@ -224,8 +224,8 @@ class Core:
|
|||||||
" cog path."))
|
" cog path."))
|
||||||
return
|
return
|
||||||
|
|
||||||
self.cleanup_and_refresh_modules(spec.name)
|
|
||||||
try:
|
try:
|
||||||
|
self.cleanup_and_refresh_modules(spec.name)
|
||||||
ctx.bot.load_extension(spec)
|
ctx.bot.load_extension(spec)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.exception("Package reloading failed", exc_info=e)
|
log.exception("Package reloading failed", exc_info=e)
|
||||||
|
|||||||
Reference in New Issue
Block a user