From fa2b52b9e332d1d495b502a5ad2c89bd65b9be01 Mon Sep 17 00:00:00 2001 From: prculley Date: Fri, 7 Oct 2016 09:57:04 -0500 Subject: [PATCH] bug 9694, fix Gedcom import with no VERSion (very old Gedcom) crash --- gramps/plugins/lib/libgedcom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index 60c4b8089..c857b191a 100644 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -7267,7 +7267,7 @@ class GedcomParser(UpdateCallback): if self.__level_is_finished(line, state.level+1): break elif line.token == TOKEN_VERS: - if line.data[0] != "5": + if (not line.data) or line.data[0] != "5": self.__add_msg(_("GEDCOM version not supported"), line, state) if self.use_def_src: