fix for:
http://www.gramps-project.org/bugs/view.php?id=5960 http://www.gramps-project.org/bugs/view.php?id=5958 an event crashed when the person was not known. svn: r20171
This commit is contained in:
parent
ca4f62cd37
commit
740da0aedc
@ -732,6 +732,8 @@ class VariableParse(object):
|
||||
|
||||
def get_event_by_name(self, person, event_name):
|
||||
""" get an event from a name. """
|
||||
if not person:
|
||||
return None
|
||||
for e_ref in person.get_event_ref_list():
|
||||
if not e_ref:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user