commit 198fb28e20250447f68e9c65858ac8eb0289ff62 parent 2b3f6b4f1ff65ba9ae558b0f62e0081c7ec55c34 Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 4 Aug 2017 16:48:21 +0200 Resolve schema update promise even if repository update fails Diffstat:
| M | chrome/content/zotero/xpcom/schema.js | | | 14 | ++++++++++++-- |
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js @@ -105,7 +105,12 @@ Zotero.Schema = new function(){ .then(async function () { await this.updateBundledFiles(); if (Zotero.Prefs.get('automaticScraperUpdates')) { - await this.updateFromRepository(this.REPO_UPDATE_UPGRADE); + try { + await this.updateFromRepository(this.REPO_UPDATE_UPGRADE); + } + catch (e) { + Zotero.logError(e); + } } _schemaUpdateDeferred.resolve(true); }.bind(this)) @@ -220,7 +225,12 @@ Zotero.Schema = new function(){ .then(async function () { await this.updateBundledFiles(); if (Zotero.Prefs.get('automaticScraperUpdates')) { - await this.updateFromRepository(this.REPO_UPDATE_STARTUP); + try { + await this.updateFromRepository(this.REPO_UPDATE_STARTUP); + } + catch (e) { + Zotero.logError(e); + } } _schemaUpdateDeferred.resolve(true); }.bind(this));