Skip to content

Commit 93a3374

Browse files
fix(mm): issue with deleting single file models
1 parent c3cf18e commit 93a3374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/app/services/model_install/model_install_default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def unconditionally_delete(self, key: str) -> None: # noqa D102
372372
if model_path.is_file() or model_path.is_symlink():
373373
model_path.unlink()
374374
assert model_path.parent != self.app_config.models_path
375-
os.rmdir(model_path.parent)
375+
rmtree(model_path.parent)
376376
elif model_path.is_dir():
377377
rmtree(model_path)
378378
self.unregister(key)

0 commit comments

Comments
 (0)