fix: return -> raise

This commit is contained in:
Gabriel Almeida 2023-03-31 14:44:34 -03:00
commit f8a48dd90e

View file

@ -21,7 +21,7 @@ def get_load(data: Dict[str, Any]):
try:
return process_graph(data)
except Exception as e:
return HTTPException(status_code=500, detail=str(e))
raise HTTPException(status_code=500, detail=str(e)) from e
@router.post("/validate", status_code=200, response_model=ValidationResponse)