Quite a few of my datasets have occurrences where individuals don't have last names. Attempting to get their name results in:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "simplepyged/records.py", line 261, in name
last = string.strip(name[1])
IndexError: list index out of range
This pull-request change would result in:
>>> my_individual.name() # person with no last name
('Barack Hussein', None)
Quite a few of my datasets have occurrences where individuals don't have last names. Attempting to get their name results in:
This pull-request change would result in: