6624: import an exported XML crashes gramps 4.0 - Actually a logic bug python 2 does not crash on.
svn: r22124
This commit is contained in:
parent
1b0c7815da
commit
18b34eea90
@ -2993,10 +2993,12 @@ class GrampsParser(UpdateCallback):
|
|||||||
obj.add_tag(tag_handle)
|
obj.add_tag(tag_handle)
|
||||||
|
|
||||||
def fix_not_instantiated(self):
|
def fix_not_instantiated(self):
|
||||||
uninstantiated = [(orig_handle, target) for orig_handle in
|
uninstantiated = []
|
||||||
list(self.import_handles.keys()) if
|
for orig_handle in self.import_handles.keys():
|
||||||
[target for target in list(self.import_handles[orig_handle].keys()) if
|
tglist = [target for target in self.import_handles[orig_handle].keys() if
|
||||||
not self.import_handles[orig_handle][target][INSTANTIATED]]]
|
not self.import_handles[orig_handle][target][INSTANTIATED]]
|
||||||
|
for target in tglist:
|
||||||
|
uninstantiated += [(orig_handle, target)]
|
||||||
if uninstantiated:
|
if uninstantiated:
|
||||||
expl_note = create_explanation_note(self.db)
|
expl_note = create_explanation_note(self.db)
|
||||||
self.db.commit_note(expl_note, self.trans, time.time())
|
self.db.commit_note(expl_note, self.trans, time.time())
|
||||||
|
Loading…
Reference in New Issue
Block a user