From d85bd534d338710f26633523dd52b25c060ab0ff Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 25 Apr 2016 21:31:08 -0700 Subject: [PATCH] make librecords play nice with proxy DBs --- gramps/plugins/lib/librecords.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gramps/plugins/lib/librecords.py b/gramps/plugins/lib/librecords.py index 3f04837a1..ad886b3fc 100644 --- a/gramps/plugins/lib/librecords.py +++ b/gramps/plugins/lib/librecords.py @@ -243,7 +243,11 @@ def find_records(db, filter, top_size, callname, continue father = db.get_person_from_handle(father_handle) + if father is None: + continue mother = db.get_person_from_handle(mother_handle) + if mother is None: + continue name = StyledText(trans_text("%(father)s and %(mother)s")) % { 'father': _get_styled_primary_name(father, callname,