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
@@ -8,7 +8,7 @@ from urllib.parse import urljoin, urlparse
from parsel import Selector
from alphapulse.calendar.archives import Announcement
from alphapulse.calendar.archives import Announcement, ArchiveMissing
from alphapulse.calendar.parsers import EASTERN, Scheduled, compact
SCHEDULE = "https://www.eia.gov/petroleum/supply/weekly/schedule.php"
@@ -71,7 +71,7 @@ def archive_links(body: str, start: date, end: date) -> list[str]:
if start <= day <= end:
result.append(url)
if not result:
raise ValueError("EIA 归档没有所选范围的已公布报告")
raise ArchiveMissing("EIA 归档没有所选范围的已公布报告")
return list(dict.fromkeys(result))