Update offer_analysis.py

This commit was merged in pull request #72.
This commit is contained in:
VivianDee
2025-11-12 16:00:43 +01:00
parent 537b6d68f9
commit ad27a26aec
+3 -3
View File
@@ -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