gen.db.base: protection from missing parent
This commit is contained in:
parent
ea591bfb17
commit
46229b2e27
@ -1747,6 +1747,7 @@ class DbWriteBase(DbReadBase):
|
||||
self.find_backlink_handles(family_handle, ['Person'])]
|
||||
for phandle in person_list:
|
||||
person = self.get_person_from_handle(phandle)
|
||||
if person:
|
||||
person.remove_handle_references('Family', [family_handle])
|
||||
self.commit_person(person, trans)
|
||||
self.remove_family(family_handle, trans)
|
||||
|
Loading…
x
Reference in New Issue
Block a user