Skip to content

Commit c5606f8

Browse files
committed
API: print filename with stack traces when there is an error during inspection
1 parent 79e9b64 commit c5606f8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def inspect_safetensors(filename: str, model_type: str, is_checkpoint: bool):
145145
return result
146146
return {"base_model": "unknown"}
147147
except Exception as e:
148+
print("[comfyui-tooling-nodes] Error inspecting file", filename)
148149
traceback.print_exc()
149150
return {"base_model": "unknown", "error": f"Failed to detect base model: {e}"}
150151

0 commit comments

Comments
 (0)