aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands/bot.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-07-07 20:16:57 -0400
committerRapptz <[email protected]>2019-07-07 20:17:44 -0400
commit6f71552c508c61d9b6bf024fc259063ad056b7c4 (patch)
tree4a619055a7cac0727d52c11d63734b227c7ffc6e /discord/ext/commands/bot.py
parentFix regression where Message.edited_at would not update during edits (diff)
downloaddiscord.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.py2
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.