Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bugs in Element.name()

  • Loading branch information...
commit 2c2fad30cbcdc9067d94645ed9301fa7bd09446c 1 parent ad809a4
Madeleine Ball authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 gedcom.py
View
8 gedcom.py
@@ -508,9 +508,11 @@ def name(self):
# some older Gedcom files don't use child tags but instead
# place the name in the value of the NAME tag
if e.value() != "":
- name = e.value.split('/')
- first = name[0].strip()
- last = name[1].strip()
+ name = e.value().split('/')
+ if len(name) > 0:
+ first = name[0].strip()
+ if len(name) > 1:
+ last = name[1].strip()
else:
for c in e.children():
if c.tag() == "GIVN":
Please sign in to comment.
Something went wrong with that request. Please try again.