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
4103f7fa
Commit
4103f7fa
authored
Oct 03, 2023
by
comfyanonymous
Browse files
Merge branch 'fix/robust_object_info' of
https://github.com/ltdrdata/ComfyUI
parents
fe1e2dbe
1f38de1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
server.py
server.py
+5
-1
No files found.
server.py
View file @
4103f7fa
...
...
@@ -413,7 +413,11 @@ class PromptServer():
async
def
get_object_info
(
request
):
out
=
{}
for
x
in
nodes
.
NODE_CLASS_MAPPINGS
:
out
[
x
]
=
node_info
(
x
)
try
:
out
[
x
]
=
node_info
(
x
)
except
Exception
as
e
:
print
(
f
"[ERROR] An error occurred while retrieving information for the '
{
x
}
' node."
,
file
=
sys
.
stderr
)
traceback
.
print_exc
()
return
web
.
json_response
(
out
)
@
routes
.
get
(
"/object_info/{node_class}"
)
...
...
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