From 2b44e51d6f644fc341fed23984c3050fcb737704 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 10 May 2007 02:54:48 +0000 Subject: [PATCH] 2007-05-09 Don Allingham * src/GrampsDb/_ReadGedcom.py (GedcomParser.func_name_aka): patch submitted on bug tracker for AKA parameter missing (#1034) svn: r8455 --- gramps2/ChangeLog | 4 ++++ gramps2/src/GrampsDb/_ReadGedcom.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index eb9fe56c8..29bb07fad 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2007-05-09 Don Allingham + * src/GrampsDb/_ReadGedcom.py (GedcomParser.func_name_aka): patch submitted + on bug tracker for AKA parameter missing (#1034) + 2007-05-09 Benny Malengier * src/glade/gramps.glade: fix #797 diff --git a/gramps2/src/GrampsDb/_ReadGedcom.py b/gramps2/src/GrampsDb/_ReadGedcom.py index 4356b5e1a..65c5aad1c 100644 --- a/gramps2/src/GrampsDb/_ReadGedcom.py +++ b/gramps2/src/GrampsDb/_ReadGedcom.py @@ -3154,6 +3154,10 @@ class GedcomParser(UpdateCallback): lname = matches[2].split() l = len(lname) + if not l: + log.warning("IGNORED empty AKA (near line %d) for %s" % ( + self.lexer.index, NameDisplay.displayer.display(state.person))) + return if l == 1: attr = RelLib.Attribute() attr.set_type(RelLib.AttributeType.NICKNAME)