更新: 5 个文件 - 2026-03-18 09:50:04

这个提交包含在:
hao
2026-03-18 09:50:04 -07:00
父节点 dc31e6e80f
当前提交 1d5cb533e3
修改 5 个文件,包含 277 行新增39 行删除

查看文件

@@ -53,7 +53,7 @@ def failure_summary(failure: Dict[str, Any]) -> str:
return failure.get("summary") or f"{failure.get('system_id')}::{failure.get('source_name')}::{failure.get('category')}::{failure.get('exception')}"
def _build_failure(system: Dict[str, Any], source: Dict[str, Any], exc: Exception) -> Dict[str, Any]:
def build_failure(system: Dict[str, Any], source: Dict[str, Any], exc: Exception) -> Dict[str, Any]:
response = getattr(exc, "response", None)
status_code = getattr(response, "status_code", None)
category = _failure_category(exc)
@@ -211,7 +211,7 @@ def collect_candidates(
if _passes_since(item, since_dt, include_undated):
all_candidates.append(item)
except Exception as exc:
failures.append(_build_failure(system, source, exc))
failures.append(build_failure(system, source, exc))
return all_candidates, failures
@@ -245,7 +245,7 @@ def probe_sources(
}
)
except Exception as exc:
failures.append(_build_failure(system, source, exc))
failures.append(build_failure(system, source, exc))
return probes, failures