Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix(codecheck): 显式抛出技能刷新异常实例

wangjiudong1b63bab4f9dd
diff --git a/jiuwenswarm/agents/harness/flash/skill_selection/service.py b/jiuwenswarm/agents/harness/flash/skill_selection/service.py
index 4803beca35..2de39ddd8d 100644
--- a/jiuwenswarm/agents/harness/flash/skill_selection/service.py
+++ b/jiuwenswarm/agents/harness/flash/skill_selection/service.py
@@ -231,13 +231,13 @@ class SelectionService:
while True:
try:
await asyncio.shield(asyncio.wrap_future(build))
- except SelectionBusy:
+ except SelectionBusy as exc:
# A forced refresh may already supersede a failed installation
# snapshot. Follow that build; keep unrecovered failures visible.
self._after_build(build)
with self._lock:
if self._build is None and self._error is not None:
- raise
+ raise exc
self._after_build(build)
with self._lock:
if self.retired: