🥅 removed fetch error catching
This commit is contained in:
parent
6ace967de7
commit
a51cc765ed
1 changed files with 2 additions and 6 deletions
8
app.js
8
app.js
|
@ -21,12 +21,8 @@ const cache = new NodeCache({ stdTTL: config.checkperiod * 3 });
|
||||||
})();
|
})();
|
||||||
|
|
||||||
async function checkSpace(space) {
|
async function checkSpace(space) {
|
||||||
try {
|
const response = await fetch(space.endpoint);
|
||||||
const response = await fetch(space.endpoint);
|
const data = await response.json();
|
||||||
const data = await response.json();
|
|
||||||
} catch (error) {
|
|
||||||
console.error(error);
|
|
||||||
}
|
|
||||||
let open;
|
let open;
|
||||||
|
|
||||||
if (!space.path) {
|
if (!space.path) {
|
||||||
|
|
Loading…
Reference in a new issue