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:
Craig J. Anderson 2012-08-01 18:58:53 +00:00
parent ca4f62cd37
commit 740da0aedc

View File

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