[diffusion] fix: return None instead of raising RuntimeError when no model info found (#21319)

Co-authored-by: Mick <mickjagger19@icloud.com>
This commit is contained in:
yang1002378395-cmyk
2026-03-27 22:42:39 +08:00
committed by GitHub
co-authored by Mick
parent 9238bd08a2
commit 279e7738c5
+2 -1
View File
@@ -349,10 +349,11 @@ def _get_config_info(
model_id = matched_model_names[0]
return _CONFIG_REGISTRY.get(model_id)
else:
raise RuntimeError(
logger.debug(
f"No model info found for model path: {model_path}. "
f"Please check the model path or specify the model_id explicitly."
)
return None
# --- Part 3: Main Resolver ---