From fbe575c577b9e6c8279aaa064cf62732c643240a Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 9 Aug 2020 14:14:56 -0400 Subject: Fix a stray error printed due to not catching (#723) --- ext/bg/js/anki.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/bg/js/anki.js') diff --git a/ext/bg/js/anki.js b/ext/bg/js/anki.js index 29ae5f0b..b1e1f7b4 100644 --- a/ext/bg/js/anki.js +++ b/ext/bg/js/anki.js @@ -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; -- cgit v1.2.3