add exception in case of the infotext is damaged

This commit is contained in:
w-e-w 2024-01-23 03:34:49 +09:00
parent 9a042c907b
commit 28cc18cbdf
1 changed files with 4 additions and 1 deletions

View File

@ -386,7 +386,10 @@ Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 965400086, Size: 512x512, Model
for key in info_json_keys:
if key in res:
res[key] = info_json_loads(res[key])
try:
res[key] = info_json_loads(res[key])
except Exception:
print(f'Error parsing "{key}: {res[key]}"')
infotext_versions.backcompat(res)