From 54d9833db0c92d345c849c684e7f8404b2dc603d Mon Sep 17 00:00:00 2001 From: Kent Keirsey <31807370+hipsterusername@users.noreply.github.com> Date: Fri, 7 Apr 2023 22:25:30 -0400 Subject: [PATCH] Else. --- invokeai/app/api/routers/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/api/routers/models.py b/invokeai/app/api/routers/models.py index 8332b44a35..2de079cd6d 100644 --- a/invokeai/app/api/routers/models.py +++ b/invokeai/app/api/routers/models.py @@ -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")