5335: Failure loading Geni.com GedCom into Gramps 3.3.1

svn: r18493
This commit is contained in:
Michiel Nauta 2011-11-23 18:29:35 +00:00
parent 6c25603105
commit bc33f7146a

View File

@ -5560,7 +5560,10 @@ class GedcomParser(UpdateCallback):
""" """
if not state.location: if not state.location:
state.location = gen.lib.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): def __optional_note(self, line, state):
""" """