Browse Source

[commands] Don't update sys.modules with a stale reference.

pull/2264/head
Rapptz 6 years ago
parent
commit
6f71552c50
  1. 2
      discord/ext/commands/bot.py

2
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.

Loading…
Cancel
Save