diff --git a/index.js b/index.js index 9998bf6d5abd4eaaeaf732ec3b0fbb722704667a..c2228ae22250eea0e653d21f1919ee78141aae2f 100644 --- a/index.js +++ b/index.js @@ -313,9 +313,8 @@ async function checkConsentForLoadCurve( } else if (err.statusCode === 403 || err.code === 403) { log('info', 'No consent for load curve') return false - } - else if (err.statusCode === 404 || err.code === 404 && err.error === "no_data_found") { - log('Handling half-hour error on connection') + } else if (err.statusCode === 404 || err.code === 404 && err.error === "no_data_found") { + log('info', 'Handling half-hour error on connection') return false } else {