From f3c7064e16da94ccbb69db539130519e109ef20c Mon Sep 17 00:00:00 2001 From: khushal Date: Tue, 25 Feb 2025 13:57:00 +0530 Subject: [PATCH] (20250225)\ --- api/blueprints/common/otp/timed_otp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/blueprints/common/otp/timed_otp.py b/api/blueprints/common/otp/timed_otp.py index e516bf5..40579fc 100644 --- a/api/blueprints/common/otp/timed_otp.py +++ b/api/blueprints/common/otp/timed_otp.py @@ -360,7 +360,9 @@ async def verify_otp( "amount": None } ) - api_json = api_response.json() + try: api_json = api_response.json() + except: api_json = {} + print(f"ADD CLIENT WITH NOTES ({api_response.status_code}):", api_response.content) print("ADD CLIENT WITH NOTES:", json.to_string(api_json)) # ┳┓