mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-09 21:57:17 +08:00
nit
This commit is contained in:
parent
b949f971dc
commit
ded828f50b
13
execution.py
13
execution.py
@ -634,6 +634,13 @@ def validate_inputs(prompt, item, validated):
|
|||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
# Unwraps values wrapped in __value__ key. This is used to pass
|
||||||
|
# list widget value to execution, as by default list value is
|
||||||
|
# reserved to represent the connection between nodes.
|
||||||
|
if isinstance(val, dict) and "__value__" in val:
|
||||||
|
val = val["__value__"]
|
||||||
|
inputs[x] = val
|
||||||
|
|
||||||
if type_input == "INT":
|
if type_input == "INT":
|
||||||
val = int(val)
|
val = int(val)
|
||||||
inputs[x] = val
|
inputs[x] = val
|
||||||
@ -646,12 +653,6 @@ def validate_inputs(prompt, item, validated):
|
|||||||
if type_input == "BOOLEAN":
|
if type_input == "BOOLEAN":
|
||||||
val = bool(val)
|
val = bool(val)
|
||||||
inputs[x] = val
|
inputs[x] = val
|
||||||
# Unwraps values wrapped in __value__ key. This is used to pass
|
|
||||||
# list widget value to execution, as by default list value is
|
|
||||||
# reserved to represent the connection between nodes.
|
|
||||||
if isinstance(val, dict) and "__value__" in val:
|
|
||||||
val = val["__value__"]
|
|
||||||
inputs[x] = val
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
error = {
|
error = {
|
||||||
"type": "invalid_input_type",
|
"type": "invalid_input_type",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user