0006397: Navweb crashes alpha4. date.get_start_date has no attribute 'is_valid'

svn: r21300
This commit is contained in:
Tim G L Lyons 2013-02-05 12:17:59 +00:00
parent 41fdca39dd
commit 6ca692e33a

View File

@ -120,7 +120,7 @@ class ProbablyAlive(object):
ev = self.db.get_event_from_handle(ev_ref.ref) ev = self.db.get_event_from_handle(ev_ref.ref)
if ev and ev.type.is_death_fallback(): if ev and ev.type.is_death_fallback():
death_date = ev.get_date_object() death_date = ev.get_date_object()
if death_date.get_start_date().is_valid(): if death_date.is_valid():
explain = _("death-related evidence") explain = _("death-related evidence")
else: else:
death_date = Today() # before today death_date = Today() # before today