From abc947cf6d551a46f66c96b095d57f23e662c4ce Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 11 May 2022 15:51:12 +0300 Subject: [PATCH] Update create.js --- scripts/commands/queue/create.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/commands/queue/create.js b/scripts/commands/queue/create.js index 9ac95184..2268edea 100644 --- a/scripts/commands/queue/create.js +++ b/scripts/commands/queue/create.js @@ -32,8 +32,8 @@ async function createQueue() { let queue = {} - await api.channels.load() - const files = await file.list(CHANNELS_PATH) + await api.channels.load().catch(console.error) + const files = await file.list(CHANNELS_PATH).catch(console.error) const utcDate = date.getUTC() const dates = Array.from({ length: options.days }, (_, i) => utcDate.add(i, 'd')) for (const filepath of files) { @@ -77,6 +77,7 @@ async function createQueue() { } } catch (err) { console.error(err) + continue } }