From 0d07292d23608733b6c62f8c2d2ee47a0a3a3aad Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Tue, 29 Sep 2015 09:18:11 +0200 Subject: [PATCH] bug 8799 : verification tool : Exception raised when used with the "Estimate missing or inexact dates" --- gramps/plugins/tool/verify.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/plugins/tool/verify.py b/gramps/plugins/tool/verify.py index f3207d8ad..8a7803b00 100644 --- a/gramps/plugins/tool/verify.py +++ b/gramps/plugins/tool/verify.py @@ -170,6 +170,7 @@ def get_birth_date(db, person, estimate=False): ret = get_date_from_event_handle(db,birth_ref.ref,estimate) if estimate and (ret == 0): ret = get_bapt_date(db,person,estimate) + ret = 0 if ret is None else ret return ret def get_death_date(db, person, estimate=False): @@ -182,6 +183,7 @@ def get_death_date(db, person, estimate=False): ret = get_date_from_event_handle(db,death_ref.ref,estimate) if estimate and (ret == 0): ret = get_bury_date(db,person,estimate) + ret = 0 if ret is None else ret return ret def get_age_at_death(db, person, estimate):