We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41f8960 commit 555fcfaCopy full SHA for 555fcfa
1 file changed
astrbot/core/star/star_manager.py
@@ -996,7 +996,7 @@ async def reload(self, specified_plugin_name=None):
996
logger.warning(
997
f"插件 {smd.name} 未被正常终止: {e!s}, 可能会导致该插件运行不正常。",
998
)
999
- if smd.name and smd.module_path:
+ if smd.name and smd.module_path and smd.activated:
1000
await self._unbind_plugin(smd.name, smd.module_path)
1001
1002
star_handlers_registry.clear()
@@ -1013,7 +1013,7 @@ async def reload(self, specified_plugin_name=None):
1013
1014
1015
1016
- if smd.name:
+ if smd.name and smd.activated:
1017
await self._unbind_plugin(smd.name, specified_module_path)
1018
1019
result = await self.load(specified_module_path)
0 commit comments