From 766f03d356da9efc7017c4af91fd5bad94f4b701 Mon Sep 17 00:00:00 2001 From: Jens Pots Date: Fri, 21 Jun 2024 13:24:39 +0200 Subject: [PATCH] test: test swedish dataset --- src/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2fe9301..802fb0f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -169,8 +169,12 @@ export async function httpFetch( } // Push the data down the pipeline. - const body = await res.text(); - await writer.push(body); + try { + const body = await res.text(); + await writer.push(body); + } catch (e) { + console.error(e); + } }; // Executes each individual request and groups them into a single promise.