8728: Merge citations caused crash
This commit is contained in:
parent
b6999bb56f
commit
2fe71bfe4e
@ -196,6 +196,8 @@ class MergeCitations(tool.BatchTool,ManagedWindow):
|
|||||||
"that has a citation reference." % class_name)
|
"that has a citation reference." % class_name)
|
||||||
|
|
||||||
citation = db.get_citation_from_handle(citation_handle)
|
citation = db.get_citation_from_handle(citation_handle)
|
||||||
|
if citation is None:
|
||||||
|
continue
|
||||||
key = citation.get_page()
|
key = citation.get_page()
|
||||||
if fields != IGNORE_DATE and fields != IGNORE_BOTH:
|
if fields != IGNORE_DATE and fields != IGNORE_BOTH:
|
||||||
key += "\n" + get_date(citation)
|
key += "\n" + get_date(citation)
|
||||||
|
Loading…
Reference in New Issue
Block a user