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 753756d commit 35e0273Copy full SHA for 35e0273
1 file changed
astrbot/core/star/star_manager.py
@@ -538,8 +538,10 @@ async def load(
538
"traceback": error_trace,
539
}
540
if path in star_map:
541
- logger.info("失败插件依旧在插件列表中")
542
- star_map.pop(path)
+ logger.info("失败插件依旧在插件列表中,正在清理...")
+ metadata = star_map.pop(path)
543
+ if metadata in star_registry:
544
+ star_registry.remove(metadata)
545
continue
546
547
# 检查 _conf_schema.json
@@ -793,6 +795,11 @@ async def load(
793
795
"traceback": errors,
794
796
797
# 记录注册失败的插件名称,以便后续重载插件
798
+ if path in star_map:
799
800
801
802
803
804
# 清除 pip.main 导致的多余的 logging handlers
805
for handler in logging.root.handlers[:]:
0 commit comments