diff --git a/src/services/estimation_service_v2.py b/src/services/estimation_service_v2.py index 606b9b3..c51eaa9 100644 --- a/src/services/estimation_service_v2.py +++ b/src/services/estimation_service_v2.py @@ -124,12 +124,8 @@ class EstimationService: response_json = response.json() print(f"AI DTQ Response: {response_json}") - if "insurable" in response_json: - dtq = not response_json["message"]["insurable"] - reason = response_json["message"]["reason"] - else: - dtq = False - reason = "" + dtq = not response_json["message"]["insurable"] + reason = response_json["message"]["reason"] return dtq, reason except Exception as e: print(f"Error in AI DTQ check: {e}")