From b2aebebfb1b3411e33f13817066ff97b00f22e9f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 7 Jul 2002 13:10:51 +0000 Subject: [PATCH] Check for empty person in dump_parent svn: r1072 --- src/plugins/FamilyGroup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/FamilyGroup.py b/src/plugins/FamilyGroup.py index 4faf6657b..3391bb6e4 100644 --- a/src/plugins/FamilyGroup.py +++ b/src/plugins/FamilyGroup.py @@ -112,6 +112,9 @@ class FamilyGroup: def dump_parent(self,person): + if not person: + return + if person.getGender() == RelLib.Person.male: id = _("Husband") else: