From cfd322c5dffaaf6992186793d26012c2820d1b1f Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 26 Apr 2016 07:49:24 -0700 Subject: [PATCH] another librecords tweak: check that a Person exists --- gramps/plugins/lib/librecords.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/plugins/lib/librecords.py b/gramps/plugins/lib/librecords.py index ad886b3fc..121402799 100644 --- a/gramps/plugins/lib/librecords.py +++ b/gramps/plugins/lib/librecords.py @@ -126,6 +126,8 @@ def find_records(db, filter, top_size, callname, for person_handle in person_handle_list: person = db.get_person_from_handle(person_handle) + if person is None: + continue # FIXME this should check for a "fallback" birth also/instead birth_ref = person.get_birth_ref()