From bc33f7146aa30506d16ebf01a482746e0af1d370 Mon Sep 17 00:00:00 2001 From: Michiel Nauta Date: Wed, 23 Nov 2011 18:29:35 +0000 Subject: [PATCH] 5335: Failure loading Geni.com GedCom into Gramps 3.3.1 svn: r18493 --- src/plugins/lib/libgedcom.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index d24665f18..29fb65dfe 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -5560,7 +5560,10 @@ class GedcomParser(UpdateCallback): """ if not state.location: state.location = gen.lib.Location() - self.__parse_note(line, state.event, state.level+1) + if state.event: + self.__parse_note(line, state.event, state.level+1) + else: + self.__not_recognized(line, state.level) def __optional_note(self, line, state): """