From 0c179a2a47b5ccfcbb1fdf6c5f7547dd9863481b Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 9 Apr 2016 16:47:26 -0700 Subject: [PATCH] cope with None family in relview --- gramps/plugins/view/relview.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/plugins/view/relview.py b/gramps/plugins/view/relview.py index d580e22a6..d22f806bc 100644 --- a/gramps/plugins/view/relview.py +++ b/gramps/plugins/view/relview.py @@ -1748,6 +1748,8 @@ def has_children(db,p): """ for family_handle in p.get_family_handle_list(): family = db.get_family_from_handle(family_handle) + if not family: + continue childlist = family.get_child_ref_list() if childlist and len(childlist) > 0: return True