diff --git a/api/helpers/user/session.py b/api/helpers/user/session.py index 0260a76..9f7309a 100644 --- a/api/helpers/user/session.py +++ b/api/helpers/user/session.py @@ -90,8 +90,7 @@ 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, raise_exception=True) - print("RAW INFO", raw_info) + raw_info = await current_app.module_cache.get(key = session_token) # Feed needed field into the core model: session_info = CoreUserInfoModel( fullName = raw_info["full_name"], @@ -105,13 +104,11 @@ 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