From 78fcabe77098d39a8bd83da09bd92ef5c1e155d7 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Mon, 11 Apr 2005 09:42:55 +0000 Subject: [PATCH] * src/PedView.py (load_canvas): Catch bug of not existing family svn: r4341 --- gramps2/ChangeLog | 3 +++ gramps2/src/PedView.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index dd2ff8136..a55aa4e9e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-04-11 Martin Hawlisch + * src/PedView.py (load_canvas): Catch bug of not existing family + 2005-04-10 Alex Roitman * Release: Version 1.1.95 "When danger reared its ugly head, he bravely turned his tail and fled" released. diff --git a/gramps2/src/PedView.py b/gramps2/src/PedView.py index d74213364..66b918841 100644 --- a/gramps2/src/PedView.py +++ b/gramps2/src/PedView.py @@ -281,6 +281,8 @@ class PedigreeView: for family_handle in self.active_person.get_family_handle_list(): family = self.db.get_family_from_handle(family_handle) + if not family: + continue if len(family.get_child_handle_list()) > 0: button,arrow = self.make_arrow_button(gtk.ARROW_LEFT, self.on_show_child_menu)