mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
fix an error that happens when you send an empty image from txt2img to img2img
This commit is contained in:
parent
fc25af3939
commit
89314e79da
@ -37,6 +37,9 @@ def quote(text):
|
||||
|
||||
|
||||
def image_from_url_text(filedata):
|
||||
if filedata is None:
|
||||
return None
|
||||
|
||||
if type(filedata) == list and len(filedata) > 0 and type(filedata[0]) == dict and filedata[0].get("is_file", False):
|
||||
filedata = filedata[0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user