Fix a stray error printed due to not catching (#723)

This commit is contained in:
toasted-nutbread 2020-08-09 14:14:56 -04:00 committed by GitHub
parent 6da02c6eee
commit fbe575c577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,9 @@ class AnkiConnect {
if (this._remoteVersion < this._localVersion) {
if (this._versionCheckPromise === null) {
const promise = this._invoke('version');
promise.finally(() => { this._versionCheckPromise = null; });
promise
.catch(() => {})
.finally(() => { this._versionCheckPromise = null; });
this._versionCheckPromise = promise;
}
this._remoteVersion = await this._versionCheckPromise;