Added small fixes to orborus and sdk

This commit is contained in:
frikky
2022-01-22 01:46:16 +00:00
committed by GitHub
parent 2230cef978
commit 7b673ccdb4
4 changed files with 18 additions and 4 deletions
+7 -1
View File
@@ -2612,7 +2612,13 @@ class AppBase:
for i in range(0, curminlength):
tmpitem = json.loads(json.dumps(parameter["value"]))
for key, value in replacements.items():
replacement = json.dumps(json.loads(value)[i])
replacement = value
try:
replacement = json.dumps(json.loads(value)[i])
except IndexError as e:
self.logger.info(f"[ERROR] Failed handling value parsing with index: {e}")
pass
if replacement.startswith("\"") and replacement.endswith("\""):
replacement = replacement[1:len(replacement)-1]
#except json.decoder.JSONDecodeError as e: