* src/ReadGedcom.py (importData): Dont crash because of a short line;
svn: r4397
This commit is contained in:
parent
6fa55ea96b
commit
a391f7e96c
@ -1,6 +1,7 @@
|
||||
2005-04-21 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||
* src/ReadGedcom.py (parse_family_object): Set MediaRef properly;
|
||||
(parse_individual): Set Adoption event properly
|
||||
(parse_individual): Set Adoption event properly;
|
||||
(importData): Dont crash because of a short line;
|
||||
* src/Marriage.py (__init__): Properly get place title
|
||||
|
||||
2005-04-20 Don Allingham <don@gramps-project.org>
|
||||
|
@ -142,9 +142,9 @@ def importData(database, filename, cb=None, use_trans=True):
|
||||
line = f.readline().split()
|
||||
if len(line) == 0:
|
||||
break
|
||||
if line[1] == 'CHAR' and line[2] == "ANSEL":
|
||||
if len(line) > 2 and line[1] == 'CHAR' and line[2] == "ANSEL":
|
||||
ansel = True
|
||||
if line[1] == 'SOUR' and line[2] == "GRAMPS":
|
||||
if len(line) > 2 and line[1] == 'SOUR' and line[2] == "GRAMPS":
|
||||
gramps = True
|
||||
f.close()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user