Skip to content

Commit

Permalink
second fix (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
DishenWang2023 committed May 7, 2024
1 parent e1bbf43 commit 0b28de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/ai/server/utils/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}")

0 comments on commit 0b28de5

Please sign in to comment.