fix: raise instead return
This commit is contained in:
parent
8dbd3adecd
commit
87b1b39475
1 changed files with 1 additions and 1 deletions
|
|
@ -33,4 +33,4 @@ def post_validate_prompt(prompt: Prompt):
|
|||
return validate_prompt(prompt.template)
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
return HTTPException(status_code=500, detail=str(e))
|
||||
raise HTTPException(status_code=500, detail=str(e)) from e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue