add debug log to estimation exceptions
This commit is contained in:
parent
2860cec1de
commit
539c8e6526
1 changed files with 2 additions and 4 deletions
|
|
@ -42,15 +42,13 @@ async def estimate(request: models.EstimationRequest):
|
||||||
return estimation_response
|
return estimation_response
|
||||||
|
|
||||||
except HTTPException as e:
|
except HTTPException as e:
|
||||||
|
print("HTTPException in estimate: ", e)
|
||||||
raise e
|
raise e
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
print("Exception in estimate: ", e)
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=500,
|
status_code=500,
|
||||||
detail=f"Server error: {str(e)}"
|
detail=f"Server error: {str(e)}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue