From 8d0b21045d723cdab86aea43d765ef2f6120a320 Mon Sep 17 00:00:00 2001 From: Helian Nuits Date: Thu, 11 Sep 2025 22:15:16 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20(llm=5Fanalyzer)=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=AD=A4=E5=89=8D=E5=AE=9A=E4=B9=89=E7=9A=84=E5=8F=98=E9=87=8F?= =?UTF-8?q?=20last=5Fexc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- src/analysis/llm_analyzer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/analysis/llm_analyzer.py b/src/analysis/llm_analyzer.py index 327cce1..1c31eb5 100644 --- a/src/analysis/llm_analyzer.py +++ b/src/analysis/llm_analyzer.py @@ -72,8 +72,7 @@ class LLMAnalyzer: logger.warning(f"LLM请求超时: 第{attempt}次, timeout={timeout}s") except Exception as e: last_exc = e - logger.warning(f"LLM请求失败: 第{attempt}次, 错误: {e}") - + logger.warning(f"LLM请求失败: 第{attempt}次, 错误: {last_exc}") # 若非最后一次,等待退避后重试 if attempt < retries: await asyncio.sleep(backoff * attempt)