diff --git a/bin/index.js b/bin/index.js index cc97149..483fe0e 100644 --- a/bin/index.js +++ b/bin/index.js @@ -42,7 +42,7 @@ async function run() { // scheduled running if (interval === 0) return; logger.debug(`Starting interval (${interval}s)...`); - runInterval(fetchAndIndex, interval * 1000); + runInterval(() => fetchAndIndex().catch(handleError), interval * 1000); } run().catch(handleError);