Added try-except around seed_assets call in get_object_info with a logging statement (#11901)

This commit is contained in:
Jedrzej Kosinski 2026-01-15 20:15:15 -08:00 committed by GitHub
parent 4c816d5c69
commit 732b707397
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -686,7 +686,10 @@ class PromptServer():
@routes.get("/object_info")
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:
out = {}
for x in nodes.NODE_CLASS_MAPPINGS: