From 90986aa946bd93204a2fc7739fe1eaf1402747f9 Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Sun, 30 Nov 2025 10:53:25 +0100 Subject: [PATCH] [rocky-linux] Fix script for future releases (#538) Future releases may be declared in the table with a year-month date, ignoring those release. --- src/rocky-linux.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/rocky-linux.py b/src/rocky-linux.py index d646ab8c..19c1cc56 100644 --- a/src/rocky-linux.py +++ b/src/rocky-linux.py @@ -1,3 +1,5 @@ +import logging + from common import dates, http from common.releasedata import ProductData, config_from_argv @@ -8,5 +10,8 @@ with ProductData(config.product) as product_data: items = line.split('|') if len(items) >= 5 and config.first_match(items[1].strip()): version = items[1].strip() - date = dates.parse_date(items[3]) - product_data.declare_version(version, date) + try: + date = dates.parse_date(items[3]) + product_data.declare_version(version, date) + except Exception as e: + logging.exception(f"Could not process release {version} for {config.product}: {e}")