diff --git a/src/node.ts b/src/node.ts index 35048b2..7c127b5 100644 --- a/src/node.ts +++ b/src/node.ts @@ -137,7 +137,12 @@ export class S5Node { hash: Multihash, ): Promise>>> { const map = new Map>>(); - const bytes = await this.db.get(stringifyHash(hash)); + let bytes; + try { + bytes = await this.db.get(stringifyHash(hash)); + } catch { + return map; + } if (bytes === null) { return map; }