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