2007-07-27 Don Allingham <don@gramps-project.org>

* src/GrampsDbUtils/_GedcomParse.py: Handle broken gedcom, there
	the TYPE field is specified, but has no value (Heredis 9)



svn: r8780
This commit is contained in:
Don Allingham 2007-07-28 02:19:12 +00:00
parent b13baceed6
commit 55a34e84bf
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-07-27 Don Allingham <don@gramps-project.org>
* src/GrampsDbUtils/_GedcomParse.py: Handle broken gedcom, there
the TYPE field is specified, but has no value (Heredis 9)
2007-07-27 Zsolt Foldvari <zfoldvar@users.sourceforge.net> 2007-07-27 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/Spell.py: (__sort_languages): typo * src/Spell.py: (__sort_languages): typo
* src/docgen/GtkPrint.py (paperstyle_to_pagesetup): typo * src/docgen/GtkPrint.py (paperstyle_to_pagesetup): typo

View File

@ -2938,7 +2938,11 @@ class GedcomParser(UpdateCallback):
if val: if val:
name = RelLib.EventType((RelLib.EventType.CUSTOM, val)) name = RelLib.EventType((RelLib.EventType.CUSTOM, val))
else: else:
name = RelLib.EventType((RelLib.EventType.CUSTOM, line[3])) try:
name = RelLib.EventType((RelLib.EventType.CUSTOM,
line[3]))
except AttributeError:
name = RelLib.EventType(RelLib.EventType.UNKNOWN)
state.event.set_type(name) state.event.set_type(name)
else: else:
try: try: