8768: Gramps throws fatal error when trying to delete a family
This commit is contained in:
parent
f7280f13d7
commit
f1cc01eb1a
@ -173,6 +173,7 @@ def get_event_ref(db, family, event_type):
|
||||
Return a reference to a primary family event of the given event type.
|
||||
"""
|
||||
from ..lib.eventroletype import EventRoleType
|
||||
if family:
|
||||
for event_ref in family.get_event_ref_list():
|
||||
event = db.get_event_from_handle(event_ref.ref)
|
||||
if (event and event.get_type() == event_type and
|
||||
|
Loading…
x
Reference in New Issue
Block a user