diff --git a/src/api/v1/router.py b/src/api/v1/router.py index b6eb394..25e6731 100644 --- a/src/api/v1/router.py +++ b/src/api/v1/router.py @@ -46,7 +46,6 @@ async def estimate(request: models.EstimationRequest): raise e except Exception as e: print("Exception in estimate: ", e) - raise e raise HTTPException( status_code=500, detail=f"Server error: {str(e)}" diff --git a/src/services/estimation_service_v2.py b/src/services/estimation_service_v2.py index fcb2aea..aba29eb 100644 --- a/src/services/estimation_service_v2.py +++ b/src/services/estimation_service_v2.py @@ -190,7 +190,7 @@ class EstimationService: rx_spend += drug_price.unit_price * month_times except Exception as e: - raise e + print(f"Error calculating rx spend for {medication.name}: {e}") pass return rx_spend