From dfebd9ce6f8aa62e0c66c4da4708b9fb38ec9a83 Mon Sep 17 00:00:00 2001 From: yatmesh Date: Mon, 23 Jun 2025 12:20:46 +0530 Subject: [PATCH] (20250623) - Testing... --- api/helpers/user/session.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/helpers/user/session.py b/api/helpers/user/session.py index 7e61b9d..0260a76 100644 --- a/api/helpers/user/session.py +++ b/api/helpers/user/session.py @@ -90,8 +90,8 @@ async def get_session(session_token) -> CoreUserInfoModel: try: # Fetch the raw info from cache: - raw_info = await current_app.module_cache.get(key = session_token) - + raw_info = await current_app.module_cache.get(key = session_token, raise_exception=True) + print("RAW INFO", raw_info) # Feed needed field into the core model: session_info = CoreUserInfoModel( fullName = raw_info["full_name"], @@ -105,11 +105,13 @@ async def get_session(session_token) -> CoreUserInfoModel: ) # Done here: + print("SESSION INFO", session_info) return session_info # In case something goes wrong: except Exception as exception: current_app.printer(exception) + raise exception return None