Commit 89314e79 authored by AUTOMATIC's avatar AUTOMATIC

fix an error that happens when you send an empty image from txt2img to img2img

parent fc25af39
......@@ -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]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment