mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-25 13:50:15 +08:00
Added try-except around seed_assets call in get_object_info with a logging statement (#11901)
This commit is contained in:
parent
4c816d5c69
commit
732b707397
@ -686,7 +686,10 @@ class PromptServer():
|
|||||||
|
|
||||||
@routes.get("/object_info")
|
@routes.get("/object_info")
|
||||||
async def get_object_info(request):
|
async def get_object_info(request):
|
||||||
seed_assets(["models"])
|
try:
|
||||||
|
seed_assets(["models"])
|
||||||
|
except Exception as e:
|
||||||
|
logging.error(f"Failed to seed assets: {e}")
|
||||||
with folder_paths.cache_helper:
|
with folder_paths.cache_helper:
|
||||||
out = {}
|
out = {}
|
||||||
for x in nodes.NODE_CLASS_MAPPINGS:
|
for x in nodes.NODE_CLASS_MAPPINGS:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user