* src/FamilyView.py (change_families): Avoid exception if family does not contain parents

svn: r5446
This commit is contained in:
Martin Hawlisch 2005-11-28 13:56:29 +00:00
parent d239c38730
commit f6aead38f0
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2005-11-28 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* NEWS: Better support for unicode filenames
* src/FamilyView.py (change_families): Avoid exception if family
does not contain parents
2005-11-28 Julio Sanchez <jsanchez@users.sourceforge.net>
* src/DateParser.py: match modifiers in reverse length order so that

View File

@ -941,8 +941,11 @@ class FamilyView:
if family.get_father_handle():
person_handle = family.get_father_handle()
else:
elif family.get_mother_handle():
person_handle = family.get_mother_handle()
else:
#family does not contain parants
return
person = self.parent.db.get_person_from_handle(person_handle)
self.parent.change_active_person(person)