fix: harden news analysis and deploy verified image tags
Development CI / check-and-build (push) Successful in 2m4s
GitHub Git mirror / mirror (push) Successful in 6s
Development CI / deploy-development (push) Successful in 2m30s

This commit is contained in:
eezd committed 2026-11-02 15:37:42 +08:00
1 parent 3b7aec0024
commit adb73f956b
27 files changed
+840 -147

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@ from urllib.parse import urljoin, urlparse
from parsel import Selector
from alphapulse.calendar.archives import Announcement, publication_time
from alphapulse.calendar.archives import Announcement, ArchiveMissing, publication_time
from alphapulse.calendar.parsers import EASTERN, MONTHS, Scheduled, compact
SCHEDULE = "https://oui.doleta.gov/unemploy/archive.asp"
@@ -61,7 +61,7 @@ def archive_links(body: str, start: date, end: date) -> list[str]:
if start <= day <= end:
links.append(url)
if not links:
raise ValueError("DOL 归档未列出所选范围的报告,历史覆盖尚未确认")
raise ArchiveMissing("DOL 归档未列出所选范围的报告,历史覆盖尚未确认")
return list(dict.fromkeys(links))