diff --git a/src/DateHandler/_DateParser.py b/src/DateHandler/_DateParser.py index 914d9991b..67f71d9aa 100644 --- a/src/DateHandler/_DateParser.py +++ b/src/DateHandler/_DateParser.py @@ -518,7 +518,7 @@ class DateParser(object): d = self._get_int(groups[2]) value = (d, m, y, False) if not check((d, m, y)): - value = Date.Empty + value = Date.EMPTY return value match = self._rfc.match(text)