From bc5847f464e6ee3e868b0bba38e7e8945eed57a5 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 --- ChangeLog | 4 ++++ src/WriteGedcom.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index cef95cf03..5c2f736f3 100644 --- a/ChangeLog +++ b/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/src/WriteGedcom.py b/src/WriteGedcom.py index f5622a43f..e98595e85 100644 --- a/src/WriteGedcom.py +++ b/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