chore: 删 tmp 调试文件,裸 except 改命名异常+日志

- 删除被跟踪的 tmp_check_desc.py / tmp_desc_snip.txt
- bridge_manager discovery、generate release 抓取的裸
  except Exception 改命名异常 + logger.warning(T8)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-18 17:01:20 +08:00
parent d7992e7a7a
commit d9aef4b340
4 changed files with 4 additions and 16 deletions

View File

@@ -124,7 +124,8 @@ def warm_cursor_bridge(force: bool = False) -> None:
)
try:
discovery = _read_discovery_polling(process)
except Exception:
except (RuntimeError, OSError, ValueError) as exc:
logger.warning("Cursor bridge discovery 失败,终止子进程:%s", exc)
process.kill()
process.wait(timeout=5)
raise

View File

@@ -473,7 +473,8 @@ def _fetch_latest_release_title(repo: str) -> str | None:
return None
title = entry.find("a:title", ns)
return title.text.strip() if title is not None and title.text else None
except Exception:
except (httpx.HTTPError, ET.ParseError, OSError) as exc:
logger.warning("读取 %s release 失败:%s", atom_url, exc)
return None