Skip to content

Commit 732b707

Browse files
authored
Added try-except around seed_assets call in get_object_info with a logging statement (Comfy-Org#11901)
1 parent 4c816d5 commit 732b707

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,10 @@ def node_info(node_class):
686686

687687
@routes.get("/object_info")
688688
async def get_object_info(request):
689-
seed_assets(["models"])
689+
try:
690+
seed_assets(["models"])
691+
except Exception as e:
692+
logging.error(f"Failed to seed assets: {e}")
690693
with folder_paths.cache_helper:
691694
out = {}
692695
for x in nodes.NODE_CLASS_MAPPINGS:

0 commit comments

Comments
 (0)