cover pathological case (perhaps from privacy proxy)

This commit is contained in:
Paul Franklin 2014-12-12 11:07:18 -08:00
parent 040c9010d2
commit 1c8cc6e33f

View File

@ -290,6 +290,8 @@ class RelGraphReport(Report):
def __add_family(self, fam_handle):
"""Add a node for a family and optionally link the spouses to it"""
fam = self.database.get_family_from_handle(fam_handle)
if fam is None: # perhaps from privacy proxy
return
fam_id = fam.get_gramps_id()
label = ""