Added try-except around seed_assets call in get_object_info with a logging statement

This commit is contained in:
Jedrzej Kosinski 2026-01-15 18:19:23 -08:00
parent 4c816d5c69
commit a68039629b

View File

@ -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: