API: print filename with stack traces when there is an error during inspection

This commit is contained in:
Acly
2026-01-05 10:16:54 +01:00
parent 79e9b6426f
commit c5606f8e8f
+1
View File
@@ -145,6 +145,7 @@ def inspect_safetensors(filename: str, model_type: str, is_checkpoint: bool):
return result
return {"base_model": "unknown"}
except Exception as e:
print("[comfyui-tooling-nodes] Error inspecting file", filename)
traceback.print_exc()
return {"base_model": "unknown", "error": f"Failed to detect base model: {e}"}