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:
Craig J. Anderson 2012-08-01 18:46:40 +00:00
parent 78b7abe204
commit bbab6e160d

View File

@ -856,6 +856,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