fix Fan Chart for exception on right-click of person with no parent

Fixes #10349
This commit is contained in:
prculley authored and Nick Hall committed 2018-01-08 19:09:14 +00:00
1 parent 1777cd4b29
commit 371a8a8f89
1 file changed
+2
+2
View File
@@ -1598,6 +1598,8 @@ class FanChartGrampsGUI:
siblings.append(sib_id)
# Collect a list of per-step-family step-siblings
for parent_h in [fam.get_father_handle(), fam.get_mother_handle()]:
if not parent_h:
continue
parent = self.dbstate.db.get_person_from_handle(parent_h)
other_families = [self.dbstate.db.get_family_from_handle(fam_id)
for fam_id in parent.get_family_handle_list()