fix putprompts keep table on invalid input
parent
cf25a1a5aa
commit
3a481c06ee
|
|
@ -63,7 +63,7 @@ def readJsonPrompt(txt, returnFailPrompt=False):
|
|||
try:
|
||||
jpr = json.loads(txt)
|
||||
except Exception:
|
||||
if returnFailPrompt is not None:
|
||||
if returnFailPrompt:
|
||||
print (f"Infinite Zoom: Corrupted Json structure: {txt[:24]} ...")
|
||||
return invalid_prompt
|
||||
raise (f"Infinite Zoom: Corrupted Json structure: {txt[:24]} ...")
|
||||
|
|
|
|||
Loading…
Reference in New Issue