From 8f69e88555854a69a07a62e124333057cbddd5a4 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Thu, 17 Nov 2011 20:53:10 +0000 Subject: [PATCH] Diagnostic print for assertion error in Tool/Family Tree Processing/Merge Citations svn: r18459 --- src/plugins/tool/MergeCitations.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/plugins/tool/MergeCitations.py b/src/plugins/tool/MergeCitations.py index 5d4e207a4..3322af6fd 100644 --- a/src/plugins/tool/MergeCitations.py +++ b/src/plugins/tool/MergeCitations.py @@ -205,7 +205,14 @@ class MergeCitations(tool.BatchTool,ManagedWindow.ManagedWindow): citation_match_handle = dict[key] citation_match = \ db.get_citation_from_handle(citation_match_handle) - self.Merge(db, citation_match, citation, trans) + try: + self.Merge(db, citation_match, citation, trans) + except AssertionError: + print "Tool/Family Tree processing/MergeCitations", \ + "citation1 gramps_id", citation_match.get_gramps_id(), \ + "citation2 gramps_id", citation.get_gramps_id() , \ + "citation backlink handles", \ + list(db.find_backlink_handles(citation.get_handle())) num_merges += 1 else: dict[key] = citation_handle