From 6fba169424b8efa65341c58b1451be208f009ccf Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 30 Oct 2004 16:36:20 +0000 Subject: [PATCH] * src/WriteGedcom.py (GedcomWriter.write_person): handle empty event handles svn: r3693 --- gramps2/ChangeLog | 4 ++++ gramps2/src/WriteGedcom.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index cef95cf03..5c2f736f3 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2004-10-30 Don Allingham + * src/WriteGedcom.py (GedcomWriter.write_person): handle + empty event handles + 2004-10-28 Don Allingham * Makefile.am: added distuninstallcheck_listfiles * doc/Makefile.am: Added CLEANFILES diff --git a/gramps2/src/WriteGedcom.py b/gramps2/src/WriteGedcom.py index f5622a43f..e98595e85 100644 --- a/gramps2/src/WriteGedcom.py +++ b/gramps2/src/WriteGedcom.py @@ -811,6 +811,8 @@ class GedcomWriter: self.write_ord("SLGC",person.get_lds_sealing(),1,const.lds_csealing) for event_handle in person.get_event_list(): + if event_handle: + continue event = self.db.get_event_from_handle(event_handle) if self.private and event.get_privacy(): continue