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