From 4fb628eec484983aa0c81f775512610bf34d9619 Mon Sep 17 00:00:00 2001 From: khushal Date: Sat, 4 Jan 2025 15:27:58 +0530 Subject: [PATCH] (20250104) Basic message will be shown even in case of exception. --- api/blueprints/finstitutions/trading/oauth/callback.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/blueprints/finstitutions/trading/oauth/callback.py b/api/blueprints/finstitutions/trading/oauth/callback.py index c57c92e..3d1d14c 100644 --- a/api/blueprints/finstitutions/trading/oauth/callback.py +++ b/api/blueprints/finstitutions/trading/oauth/callback.py @@ -63,6 +63,7 @@ from utils_v2.api.async_quart import ( # Data Models: from models.core.auth_token import CoreAuthTokenModel +from models.finstitutions.trading.oauth import TradingOAuthCallbackResponse # Common: from shared import constants @@ -181,7 +182,7 @@ async def trading_oauth_callback( } # Start by assuming failure: - g.client_response = None + g.client_response = TradingOAuthCallbackResponse(message = "") # ┳┓ ┓ ┏┓ ┓ • # ┣┫┏┓┏┓┃┏┏┓┏┓ ┗┓┏┓┃┏┓┏╋┓┏┓┏┓