From 1f9f08c3c5c6d0b39ba83a1fcfb57cbfbc2cac0a Mon Sep 17 00:00:00 2001 From: prculley Date: Fri, 6 Oct 2017 17:03:41 -0500 Subject: [PATCH] Fix exception when changing a family with Add person editor open fixes #10187 --- gramps/gui/editors/editperson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/editors/editperson.py b/gramps/gui/editors/editperson.py index 5210eb684..0f0477dc9 100644 --- a/gramps/gui/editors/editperson.py +++ b/gramps/gui/editors/editperson.py @@ -300,7 +300,7 @@ class EditPerson(EditPrimary): def _update_families(self): phandle = self.obj.get_handle() - if phandle: + if self.dbstate.db.has_person_handle(phandle): #new person has no handle yet and cannot be in a family. person = self.dbstate.db.get_person_from_handle(phandle) self.obj.set_family_handle_list(person.get_family_handle_list())