This commit is contained in:
Kent Keirsey 2023-04-07 22:25:30 -04:00
parent 5fe8cb56fc
commit 54d9833db0

View File

@ -123,7 +123,7 @@ async def delete_model(model_name: str) -> None:
print(f">> Model Deleted: {model_name}")
raise HTTPException(status_code=204, detail=f"Model '{model_name}' deleted successfully")
if not model_exists:
else:
print(f">> Model not found")
raise HTTPException(status_code=404, detail=f"Model '{model_name}' not found")