Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
516119ad
"vscode:/vscode.git/clone" did not exist on "ccad603b2e6862a4a719bc34dc6bd32e65a539ad"
Commit
516119ad
authored
May 21, 2023
by
comfyanonymous
Browse files
Print min and max values in validation error message.
parent
3c76f430
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
execution.py
execution.py
+2
-2
No files found.
execution.py
View file @
516119ad
...
...
@@ -328,9 +328,9 @@ def validate_inputs(prompt, item, validated):
if
len
(
info
)
>
1
:
if
"min"
in
info
[
1
]
and
val
<
info
[
1
][
"min"
]:
return
(
False
,
"Value smaller than min. {}, {}"
.
format
(
class_type
,
x
))
return
(
False
,
"Value
{}
smaller than min
of {}
. {}, {}"
.
format
(
val
,
info
[
1
][
"min"
],
class_type
,
x
))
if
"max"
in
info
[
1
]
and
val
>
info
[
1
][
"max"
]:
return
(
False
,
"Value bigger than max. {}, {}"
.
format
(
class_type
,
x
))
return
(
False
,
"Value
{}
bigger than max
of {}
. {}, {}"
.
format
(
val
,
info
[
1
][
"max"
],
class_type
,
x
))
if
hasattr
(
obj_class
,
"VALIDATE_INPUTS"
):
input_data_all
=
get_input_data
(
inputs
,
obj_class
,
unique_id
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment