Fixes: unable to postprocess uploaded image "metadata" error

This commit is contained in:
psychedelicious 2022-10-30 18:11:55 +11:00
parent ac1469bbd3
commit 7a4e358d53

View File

@ -336,7 +336,7 @@ class InvokeAIWebServer:
seed = (
original_image["metadata"]["seed"]
if "seed" in original_image["metadata"]
if "metadata" in original_image and "seed" in original_image["metadata"]
else "unknown_seed"
)