mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[V3 Core] Catch errors when reloading (#1225)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user