diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index 942790b24..af7cea24a 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -1643,9 +1643,10 @@ class Date(object): raise DateError("Invalid year {} passed in value {}". format(original, value)) - except DateError: + except DateError as e: log.debug("Sanity check failed - self: {}, sanity: {}".format( self.to_struct(), sanity.to_struct())) + e.date = self raise def recalc_sort_value(self):