Commit 4103f7fa authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'fix/robust_object_info' of https://github.com/ltdrdata/ComfyUI

parents fe1e2dbe 1f38de1f
......@@ -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}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment