0008401: NameError in GEDCOM importer

This commit is contained in:
kulath 2015-03-12 14:11:28 +00:00
parent 159fa31888
commit 411b2995eb

View File

@ -5182,7 +5182,7 @@ class GedcomParser(UpdateCallback):
# +1 SOUR @<XREF:SOUR>@ {0:M} # +1 SOUR @<XREF:SOUR>@ {0:M}
if not line.data: if not line.data:
self.__add_msg(_("Empty note ignored"), line, state) self.__add_msg(_("Empty note ignored"), line, state)
self.__skip_subordinate_levels(level+1, state) self.__skip_subordinate_levels(state.level+1, state)
else: else:
new_note = Note(line.data) new_note = Note(line.data)
new_note.set_gramps_id(self.nid_map[""]) new_note.set_gramps_id(self.nid_map[""])