From a51cc765ed1b1a0d61b4cb05a26b00234dfddd44 Mon Sep 17 00:00:00 2001 From: ryzetech Date: Wed, 18 Jan 2023 17:34:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20removed=20fetch=20error=20catchi?= =?UTF-8?q?ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app.js b/app.js index 478620e..f7b0322 100644 --- a/app.js +++ b/app.js @@ -21,12 +21,8 @@ const cache = new NodeCache({ stdTTL: config.checkperiod * 3 }); })(); async function checkSpace(space) { - try { - const response = await fetch(space.endpoint); - const data = await response.json(); - } catch (error) { - console.error(error); - } + const response = await fetch(space.endpoint); + const data = await response.json(); let open; if (!space.path) {