From 0b28de5d60ffaf25180cc2cec56be37614c72544 Mon Sep 17 00:00:00 2001 From: Dishen <44216194+DishenWang2023@users.noreply.github.com> Date: Fri, 15 Sep 2023 13:59:41 -0500 Subject: [PATCH] second fix (#153) --- apps/ai/server/utils/exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai/server/utils/exception.py b/apps/ai/server/utils/exception.py index ecf3717b..9f17a553 100644 --- a/apps/ai/server/utils/exception.py +++ b/apps/ai/server/utils/exception.py @@ -5,4 +5,4 @@ def raise_for_status(status_code: int, message: str = None): if status_code < status.HTTP_400_BAD_REQUEST: return - raise HTTPException(status_code=status_code, detail="K2-Engine: " + message) + raise HTTPException(status_code=status_code, detail=f"K2-Engine: {str(message)}")