From ad27a26aec2d1aabb725d47acc3d1932a11af66c Mon Sep 17 00:00:00 2001 From: VivianDee <115420678+VivianDee@users.noreply.github.com> Date: Wed, 12 Nov 2025 16:00:43 +0100 Subject: [PATCH] Update offer_analysis.py --- app/api/services/offer_analysis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/services/offer_analysis.py b/app/api/services/offer_analysis.py index 13f4645..9a792e4 100644 --- a/app/api/services/offer_analysis.py +++ b/app/api/services/offer_analysis.py @@ -180,7 +180,7 @@ class OfferAnalysis: if real_eligible_amount < original_transaction_offer.min_amount: logger.error(f"Max eligible amount ({real_eligible_amount}) is less than the minimum offer amount ({original_transaction_offer.min_amount}).") - raise ValueError("You are not eligible for a loan at this time.") + raise ValueError("You are not eligible for a loan at this time - Minimum amount not met.") # if real_eligible_amount < 100: # logger.error(f"Max eligible amount ({real_eligible_amount}) is less than the minimum offer amount ({original_transaction_offer.min_amount}).") @@ -257,7 +257,7 @@ class OfferAnalysis: }) if not eligible_offers: - logger.error("No eligible offers found for customer: {customer_id}.") - raise ValueError("You are not eligible for a loan at this time.") + logger.error("No eligible offers found for customer: {customer_id} - Minimum amount not met") + raise ValueError("You are not eligible for a loan at this time - Minimum amount not met") return eligible_offers \ No newline at end of file -- 2.34.1