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