diff --git a/src/matrix/storage/idb/Store.ts b/src/matrix/storage/idb/Store.ts index e3d6e3f7..84e02e60 100644 --- a/src/matrix/storage/idb/Store.ts +++ b/src/matrix/storage/idb/Store.ts @@ -201,14 +201,10 @@ export class Store extends QueryTarget { } reqAsPromise(request).catch(err => { let keys : IDBKey[] | undefined = undefined; - try { - if (value) { - keys = this._getKeys(value); - } else if (key) { - keys = [key]; - } - } catch (err) { - console.error("_getKeys failed", err); + if (value) { + keys = this._getKeys(value); + } else if (key) { + keys = [key]; } this._transaction.addWriteError(err, log, operationName, keys); });