From cc431ac9a33d1c1088f06dc7145b8544ca461352 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Fri, 23 Feb 2024 11:00:08 +1300 Subject: [PATCH] fix: Change non-current year error to a warning Fixes #704 --- xml2rfc/writers/preptool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml2rfc/writers/preptool.py b/xml2rfc/writers/preptool.py index 1ac33a6f..0d7c4360 100644 --- a/xml2rfc/writers/preptool.py +++ b/xml2rfc/writers/preptool.py @@ -650,7 +650,7 @@ def front_insert_date(self, e, p): year = str(today.year) if not month: if year != str(today.year): - self.die(e, "Expected to have the current year when month is missing, but found '%s'" % (d.get('year'))) + self.warn(e, "Expected to have the current year when month is missing, but found '%s'" % (d.get('year'))) month = today.strftime('%m') day = today.strftime('%d') datestr = "%s-%s-%s" %(year, month, day or '01')