pythongosssss / ComfyUI-Custom-Scripts

Enhancements & experiments for ComfyUI, mostly focusing on UI features
MIT License
1.38k stars 104 forks source link

Fix a bug in notify, line is "if unique_id and extra_pnginfo and… #207

Closed gaowei-space closed 3 months ago

gaowei-space commented 3 months ago

Fix a bug in notify, line is if unique_id and extra_pnginfo and workflow in extra_pnginfo[0], Error is TypeError: argument of type NoneType is not iterable.

When I upgraded comfyui to the latest version yesterday, when executing the workflow through the API, this error prevented the execution of the program. Here is a simple workflow I put together to reproduce this error:

curl --request POST \
  --url http://127.0.0.1:8199/prompt \
  --header 'content-type: application/json' \
  --header 'user-agent: vscode-restclient' \
  --data '{"prompt":{"10":{"inputs":{"text":["12",0]},"class_type":"ShowText|pysssss","_meta":{"title":"Show Text 🐍"}},"12":{"inputs":{"text":"hello world!"},"class_type":"ttN text","_meta":{"title":"text"}}}}'