We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b11f78 commit 8e62df9Copy full SHA for 8e62df9
docs/changelog.rst
@@ -11,6 +11,7 @@ Massive documentation updates
11
- ext.commands
12
- :func:`Bot.handle_commands` now also invokes on threads / replies
13
- Cooldowns are now handled correctly per bucket.
14
+ - Fix issue with :func:`Bot.reload_module` where module is reloaded incorrectly if exception occurs
15
16
- ext.pubsub
17
- Channel subscription model fixes.
twitchio/ext/commands/bot.py
@@ -441,6 +441,7 @@ def reload_module(self, name: str):
441
except Exception as e:
442
sys.modules.update(modules)
443
module.prepare(self) # type: ignore
444
+ self._modules[name] = module
445
raise
446
447
def add_cog(self, cog: Cog):
0 commit comments