diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 19deafdfc3..92757aca74 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -2481,15 +2481,17 @@ Zotero.Integration.Session.prototype.openCitationExplorer = async function () { await Zotero.Integration.displayDialog('chrome://zotero/content/integration/citationExplorer.xhtml', 'resizable', io); if (io.openCitationDialog) { - let citations = await this.cite(io.openCitationDialog); - if (this.data.prefs.delayCitationUpdates) { - for (let citation of citations) { - await this.writeDelayedCitation(citation.field, citation); + try { + await this.cite(io.openCitationDialog); + } + catch (e) { + if (!(e instanceof Zotero.Exception.Alert)) { + Zotero.debug("An error occurred while citing from Citation Explorer. Document will be updated."); + Zotero.logError(e); } - } else { - return this.updateDocument(FORCE_CITATIONS_FALSE, false, false); } } + return this.updateDocument(FORCE_CITATIONS_FALSE, false, false); };