From 7b9570528846208204e654c13f41cd6ce628c8d7 Mon Sep 17 00:00:00 2001
From: git-directory-deploy <>
Date: Wed, 30 Jun 2021 17:53:20 +0200
Subject: [PATCH] publish: Merge branch 'dev' into 'master'

generated from commit 6a7f575ff4574c19834226e9bf76292ced1c2fb8
---
 index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index ec01ee9..9b34dad 100644
--- a/index.js
+++ b/index.js
@@ -313,7 +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) {
+    } else if ((err.statusCode === 404 || err.code === 404) &&
+      err.message.search('no_data_found') > 0) {
       // log('info', 'Handling half-hour error on connection')
       throw 'halffffffffff'
     } else {
-- 
GitLab