From 5a9c357d888cdda5560c7bcfaf332d6f39833ca6 Mon Sep 17 00:00:00 2001 From: git-directory-deploy <> Date: Wed, 30 Jun 2021 16:50:41 +0200 Subject: [PATCH] publish: Merge branch 'dev' into 'master' generated from commit 6a7f575ff4574c19834226e9bf76292ced1c2fb8 --- index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d8da1fe..9998bf6 100644 --- a/index.js +++ b/index.js @@ -313,8 +313,13 @@ async function checkConsentForLoadCurve( } else if (err.statusCode === 403 || err.code === 403) { log('info', 'No consent for load curve') return false - } else { - throw 'DEMI HEURE FAILL' + } + else if (err.statusCode === 404 || err.code === 404 && err.error === "no_data_found") { + log('Handling half-hour error on connection') + return false + } + else { + throw err } } } -- GitLab