mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Core] Pass exceptions on Cog Load to user. (#2754)
This commit is contained in:
parent
652d9fe950
commit
9116cd02e6
@ -262,7 +262,7 @@ class RedBase(commands.GroupMixin, commands.bot.BotBase, RPCMixin):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
self._remove_module_references(lib.__name__)
|
self._remove_module_references(lib.__name__)
|
||||||
self._call_module_finalizers(lib, name)
|
self._call_module_finalizers(lib, name)
|
||||||
raise errors.CogLoadError() from e
|
raise errors.CogLoadError(e) from e
|
||||||
else:
|
else:
|
||||||
self._BotBase__extensions[name] = lib
|
self._BotBase__extensions[name] = lib
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user