Fixed a problem where variables with loops fail, and a print problem

This commit is contained in:
Frikky
2024-01-18 12:52:14 +01:00
parent d9b7123382
commit a08c9c0bf3
+5 -1
View File
@@ -556,7 +556,7 @@ class AppBase:
continue continue
except requests.exceptions.RequestException as e: 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) 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 # 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 # Goes here if loop
if value == "#": if value == "#":
newvalue = [] newvalue = []
if basejson == None:
return "", False
for innervalue in basejson: for innervalue in basejson:
# 1. Check the next item (message) # 1. Check the next item (message)
# 2. Call this function again # 2. Call this function again