From a08c9c0bf33dee39e3a37e10c29d71f9939c12af Mon Sep 17 00:00:00 2001 From: Frikky Date: Thu, 18 Jan 2024 12:52:14 +0100 Subject: [PATCH] Fixed a problem where variables with loops fail, and a print problem --- backend/app_sdk/app_base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/app_sdk/app_base.py b/backend/app_sdk/app_base.py index 34fbd22c..29aab5c9 100755 --- a/backend/app_sdk/app_base.py +++ b/backend/app_sdk/app_base.py @@ -556,7 +556,7 @@ class AppBase: continue except requests.exceptions.RequestException as e: - self.logger.info(f"[DEBUG] Request problem for url {url}: {e}" + self.logger.info(f"[DEBUG] Request problem for url {url}: {e}") time.sleep(sleeptime) # Check if we have a read timeout. If we do, exit as we most likely sent the result without getting a good result @@ -2036,6 +2036,10 @@ class AppBase: # Goes here if loop if value == "#": newvalue = [] + + if basejson == None: + return "", False + for innervalue in basejson: # 1. Check the next item (message) # 2. Call this function again