Resolve schema update promise even if repository update fails
This commit is contained in:
parent
2b3f6b4f1f
commit
198fb28e20
|
@ -105,8 +105,13 @@ Zotero.Schema = new function(){
|
||||||
.then(async function () {
|
.then(async function () {
|
||||||
await this.updateBundledFiles();
|
await this.updateBundledFiles();
|
||||||
if (Zotero.Prefs.get('automaticScraperUpdates')) {
|
if (Zotero.Prefs.get('automaticScraperUpdates')) {
|
||||||
|
try {
|
||||||
await this.updateFromRepository(this.REPO_UPDATE_UPGRADE);
|
await this.updateFromRepository(this.REPO_UPDATE_UPGRADE);
|
||||||
}
|
}
|
||||||
|
catch (e) {
|
||||||
|
Zotero.logError(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
_schemaUpdateDeferred.resolve(true);
|
_schemaUpdateDeferred.resolve(true);
|
||||||
}.bind(this))
|
}.bind(this))
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
@ -220,8 +225,13 @@ Zotero.Schema = new function(){
|
||||||
.then(async function () {
|
.then(async function () {
|
||||||
await this.updateBundledFiles();
|
await this.updateBundledFiles();
|
||||||
if (Zotero.Prefs.get('automaticScraperUpdates')) {
|
if (Zotero.Prefs.get('automaticScraperUpdates')) {
|
||||||
|
try {
|
||||||
await this.updateFromRepository(this.REPO_UPDATE_STARTUP);
|
await this.updateFromRepository(this.REPO_UPDATE_STARTUP);
|
||||||
}
|
}
|
||||||
|
catch (e) {
|
||||||
|
Zotero.logError(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
_schemaUpdateDeferred.resolve(true);
|
_schemaUpdateDeferred.resolve(true);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user