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