mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 16:07:01 +08:00
refactor: 移除 agent 批量重试逻辑中的多余 try 块并优化缩进
This commit is contained in:
@@ -875,7 +875,6 @@ class AgentManager:
|
|||||||
if not history_ids:
|
if not history_ids:
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
|
||||||
session_id = f"__agent_retry_transfer_batch_{uuid.uuid4().hex[:8]}__"
|
session_id = f"__agent_retry_transfer_batch_{uuid.uuid4().hex[:8]}__"
|
||||||
user_id = "system"
|
user_id = "system"
|
||||||
|
|
||||||
@@ -935,6 +934,8 @@ class AgentManager:
|
|||||||
f"Respond in Chinese (中文)."
|
f"Respond in Chinese (中文)."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
|
|
||||||
await self.process_message(
|
await self.process_message(
|
||||||
session_id=session_id,
|
session_id=session_id,
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user