diff options
| author | Rapptz <[email protected]> | 2019-07-07 20:16:57 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-07-07 20:17:44 -0400 |
| commit | 6f71552c508c61d9b6bf024fc259063ad056b7c4 (patch) | |
| tree | 4a619055a7cac0727d52c11d63734b227c7ffc6e /discord/ext/commands/bot.py | |
| parent | Fix regression where Message.edited_at would not update during edits (diff) | |
| download | discord.py-6f71552c508c61d9b6bf024fc259063ad056b7c4.tar.xz discord.py-6f71552c508c61d9b6bf024fc259063ad056b7c4.zip | |
[commands] Don't update sys.modules with a stale reference.
Diffstat (limited to 'discord/ext/commands/bot.py')
| -rw-r--r-- | discord/ext/commands/bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 9cdef77b..c318408b 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -605,7 +605,7 @@ class BotBase(GroupMixin): self._call_module_finalizers(lib, key) raise errors.ExtensionFailed(key, e) from e else: - sys.modules[key] = self.__extensions[key] = lib + self.__extensions[key] = lib def load_extension(self, name): """Loads an extension. |