another librecords tweak: check that a Person exists

This commit is contained in:
Paul Franklin 2016-04-26 07:49:24 -07:00
parent 95c39a9e1d
commit cfd322c5df

View File

@ -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()