diff --git a/inbound_verify/store.py b/inbound_verify/store.py index f32ef24..3c73d66 100644 --- a/inbound_verify/store.py +++ b/inbound_verify/store.py @@ -399,6 +399,10 @@ def ingest_task(site, kind): """ if site == "__compare__": return 0 + # 百世无应到/实到(只有站点直供的未到);非 undelivered 直接返回 0,避免 + # _ingest_expected/_ingest_actual 走到 _site_cfg(百世)=None 而 TypeError。 + if site == "百世" and kind != "undelivered": + return 0 dates = _read_business_dates() total = 0 with _connect(_load_pg_config()["dbname"]) as conn: