🐛 debug: 输出AI分析异常信息

This commit is contained in:
ATRI
2026-07-09 09:15:34 +08:00
parent 1335896c2c
commit 22f796faac

View File

@@ -426,8 +426,8 @@ class CFQueryPlugin(Star):
if llm_resp and llm_resp.completion_text: if llm_resp and llm_resp.completion_text:
yield event.plain_result(llm_resp.completion_text) yield event.plain_result(llm_resp.completion_text)
except Exception as e: except Exception as e:
# AI分析失败不影响主流程 # AI分析失败时打印错误但不影响主流程
pass yield event.plain_result(f"⚠️ AI分析异常: {type(e).__name__}: {e}")
return return
# 没有图表时才发文本报告 # 没有图表时才发文本报告