[graalvm] Fix typo in data retrieved from www.graalvm.org (#556)

https://www.graalvm.org/release-calendar/ contains a date with a '.' suffix that cannot be parse properly : 'January 20, 2026.'.
This commit is contained in:
Marc Wrobel
2026-02-03 00:09:12 +01:00
committed by GitHub
parent 7d192dc462
commit d11875c0df

View File

@@ -22,6 +22,7 @@ with ProductData(config.product) as product_data:
continue
date_text = cells[date_index].get_text().strip()
date_text = date_text.removesuffix('.') # Remove trailing . if present, such as for "January 20, 2026."
date = dates.parse_date(date_text)
if date > dates.today_at_midnight():
logging.info(f"Skipping future version {cells}")