From d441ae53eab35b64220c6534db5b0991fd85d4bc Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Thu, 2 Jun 2011 08:04:35 +0000 Subject: [PATCH] 4954: Error showing children if no spouse in family svn: r17658 --- src/plugins/gramplet/Children.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/gramplet/Children.py b/src/plugins/gramplet/Children.py index 27b3bd147..93aec42dd 100644 --- a/src/plugins/gramplet/Children.py +++ b/src/plugins/gramplet/Children.py @@ -152,7 +152,8 @@ class PersonChildren(Children): Add a child to the model. """ name = name_displayer.display(child) - spouse = name_displayer.display(spouse) + if spouse: + spouse = name_displayer.display(spouse) birth = get_birth_or_fallback(self.dbstate.db, child) birth_date, birth_sort, birth_place = self.get_date_place(birth) death = get_death_or_fallback(self.dbstate.db, child)