mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 08:17:47 +00:00
[commands] Don't update sys.modules with a stale reference.
This commit is contained in:
parent
70e62e8fe4
commit
6f71552c50
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user