2004-08-20 Tim Waugh <twaugh@redhat.com>

* src/plugins/RelCalc.py (__init__): Handle unknown birth dates.


svn: r3449
This commit is contained in:
Tim Waugh 2004-08-20 11:58:06 +00:00
parent fad53895fe
commit 7a22617b52
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2004-08-20 Tim Waugh <twaugh@redhat.com>
* src/plugins/RelCalc.py (__init__): Handle unknown birth dates.
* src/Calendar.py (calendar_names): Fixed typo.
2004-08-19 Don Allingham <dallingham@users.sourceforge.net>

View File

@ -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()