Skip to content

Commit

Permalink
[Core] Pass exceptions on Cog Load to user. (#2754)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bakersbakebread authored and Michael H committed Jun 2, 2019
1 parent 652d9fe commit 9116cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redbot/core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ async def load_extension(self, spec: ModuleSpec):
except Exception as e:
self._remove_module_references(lib.__name__)
self._call_module_finalizers(lib, name)
raise errors.CogLoadError() from e
raise errors.CogLoadError(e) from e
else:
self._BotBase__extensions[name] = lib

Expand Down

0 comments on commit 9116cd0

Please sign in to comment.