From 530b159c96b5426c7c5c891c8773f6e9afb03685 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 24 Jun 2023 02:29:33 -0400 Subject: [PATCH] fix: don't skip portal if we fail to register --- src/download.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/download.ts b/src/download.ts index cdf5e6a..8aaf9e6 100644 --- a/src/download.ts +++ b/src/download.ts @@ -15,9 +15,7 @@ export async function downloadObject(cid: string): Promise { if (!(await portal.isLoggedIn())) { try { await portal.register(); - } catch { - continue; - } + } catch {} await portal.login(); }