From 80f5069a49dde2a47da2f8c9adb466961317d880 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 23 May 2010 14:51:51 +0000 Subject: [PATCH] Protection from missing (or inaccessible) person svn: r15455 --- src/Utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Utils.py b/src/Utils.py index 84966c2ac..bc0fa0ab1 100644 --- a/src/Utils.py +++ b/src/Utils.py @@ -1221,6 +1221,8 @@ def get_participant_from_event(db, event_handle): families = set([x[1] for x in result_list if x[0] == 'Family']) for personhandle in people: person = db.get_person_from_handle(personhandle) + if not person: + continue for event_ref in person.get_event_ref_list(): if event_handle == event_ref.ref and \ event_ref.get_role().is_primary():