🥅 removed fetch error catching

This commit is contained in:
ryzetech 2023-01-18 17:34:20 +01:00
parent 6ace967de7
commit a51cc765ed
1 changed files with 2 additions and 6 deletions

8
app.js
View File

@ -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) {