2007-09-19 Benny Malengier <benny.malengier@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py: empty gedcom gives error message, not crash svn: r8990
This commit is contained in:
@ -1,3 +1,6 @@
|
|||||||
|
2007-09-19 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
|
* src/GrampsDb/_ReadGedcom.py: empty gedcom gives error message, not crash
|
||||||
|
|
||||||
2007-09-13 Benny Malengier <benny.malengier@gramps-project.org>
|
2007-09-13 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
* src/Exporter.py: temporarely fix bug invalid filename. This has been
|
* src/Exporter.py: temporarely fix bug invalid filename. This has been
|
||||||
completely rewritten for 3.0
|
completely rewritten for 3.0
|
||||||
|
@ -2219,7 +2219,7 @@ class GedcomParser(UpdateCallback):
|
|||||||
def parse_header_head(self):
|
def parse_header_head(self):
|
||||||
"""validiates that this is a valid GEDCOM file"""
|
"""validiates that this is a valid GEDCOM file"""
|
||||||
line = self.lexer.read()
|
line = self.lexer.read()
|
||||||
if line[1] != TOKEN_HEAD:
|
if not line or line[1] != TOKEN_HEAD:
|
||||||
raise Errors.GedcomError("%s is not a GEDCOM file" % self.filename)
|
raise Errors.GedcomError("%s is not a GEDCOM file" % self.filename)
|
||||||
|
|
||||||
def parse_header_source(self):
|
def parse_header_source(self):
|
||||||
|
Reference in New Issue
Block a user