5335: Failure loading Geni.com GedCom into Gramps 3.3.1

svn: r18494
This commit is contained in:
Michiel Nauta 2011-11-23 18:30:19 +00:00
parent 3581f6c22e
commit 51858c24f8

View File

@ -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):
"""