mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui
synced 2025-01-08 12:07:30 +08:00
add exception in case of the infotext is damaged
This commit is contained in:
parent
9a042c907b
commit
28cc18cbdf
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user