mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 10:25:16 +00:00
Merge branch 'fix/robust_object_info' of https://github.com/ltdrdata/ComfyUI
This commit is contained in:
commit
4103f7fad5
@ -413,7 +413,11 @@ class PromptServer():
|
|||||||
async def get_object_info(request):
|
async def get_object_info(request):
|
||||||
out = {}
|
out = {}
|
||||||
for x in nodes.NODE_CLASS_MAPPINGS:
|
for x in nodes.NODE_CLASS_MAPPINGS:
|
||||||
|
try:
|
||||||
out[x] = node_info(x)
|
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)
|
return web.json_response(out)
|
||||||
|
|
||||||
@routes.get("/object_info/{node_class}")
|
@routes.get("/object_info/{node_class}")
|
||||||
|
Loading…
Reference in New Issue
Block a user