diff --git a/gramps/gen/datehandler/_dateparser.py b/gramps/gen/datehandler/_dateparser.py index a9bd5971e..cfeef2214 100644 --- a/gramps/gen/datehandler/_dateparser.py +++ b/gramps/gen/datehandler/_dateparser.py @@ -614,6 +614,8 @@ class DateParser(object): match = self._numeric.match(text) if match: groups = match.groups() + if groups == (None, None, None, None, None): + return Date.EMPTY if self.ymd: # '1789' and ymd: incomplete date if groups[1] is None: