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)) # ┳┓