From 7a22617b521cf3078bc7bc50c86fbabe50d8f869 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Fri, 20 Aug 2004 11:58:06 +0000 Subject: [PATCH] 2004-08-20 Tim Waugh * src/plugins/RelCalc.py (__init__): Handle unknown birth dates. svn: r3449 --- ChangeLog | 1 + src/plugins/RelCalc.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d18a0333e..edd362958 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ 2004-08-20 Tim Waugh + * src/plugins/RelCalc.py (__init__): Handle unknown birth dates. * src/Calendar.py (calendar_names): Fixed typo. 2004-08-19 Don Allingham diff --git a/src/plugins/RelCalc.py b/src/plugins/RelCalc.py index cc12f6c7b..f69f9af5b 100644 --- a/src/plugins/RelCalc.py +++ b/src/plugins/RelCalc.py @@ -99,7 +99,10 @@ class RelCalc: continue val = self.db.get_person_from_handle(key).get_display_info() event = self.db.find_event_from_handle(val[3]) - self.clist.add([val[0],val[1],event.get_date(),val[5],val[6]],p.get_handle()) + event_date = None + if event: + event_date = event.get_date () + self.clist.add([val[0],val[1],event_date,val[5],val[6]],p.get_handle()) self.clist.connect_model()