From f69f9f0865d0663a3461c40acb124729e12aa4ff Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 30 May 2006 02:36:25 +0000 Subject: [PATCH] * src/PluginUtils/_ReportUtils.py: handle no person error svn: r6818 --- gramps2/ChangeLog | 1 + gramps2/src/PluginUtils/_ReportUtils.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a22f570f6..50ea12449 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -2,6 +2,7 @@ * src/plugins/DetDescendantReport.py: insert name keys for indexing. * src/plugins/DetAncestralReport.py: insert name keys for indexing. * src/plugins/FamilyGroup.py: print descriptions for events. + * src/PluginUtils/_ReportUtils.py: handle no person error 2006-05-29 Alex Roitman * src/Editors/_EditFamily.py (EditFamily.save): Typo. diff --git a/gramps2/src/PluginUtils/_ReportUtils.py b/gramps2/src/PluginUtils/_ReportUtils.py index 416d6a342..4073c1280 100644 --- a/gramps2/src/PluginUtils/_ReportUtils.py +++ b/gramps2/src/PluginUtils/_ReportUtils.py @@ -2209,6 +2209,9 @@ def get_person_key(db,person): @param db: the GRAMPS database instance @param person: the the key is for """ + if not person: + return "" + name = person.get_primary_name().get_name() birth = " " death = " "