Update pyproject.toml and logging for stricter rules and improved error handling
- Ignored additional Ruff rules for test files, SQLAlchemy fixtures, and FastAPI-specific naming conventions. - Suppressed passlib bcrypt warnings in `core.auth`. - Improved exception handling in session marking with explicit logging for token parsing failures.
This commit is contained in:
@@ -72,8 +72,11 @@ async def list_my_sessions(
|
||||
decode_token(access_token)
|
||||
# Note: Access tokens don't have JTI by default, but we can try
|
||||
# For now, we'll mark current based on most recent activity
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as e:
|
||||
# Optional token parsing - silently ignore failures
|
||||
logger.debug(
|
||||
f"Failed to decode access token for session marking: {e!s}"
|
||||
)
|
||||
|
||||
# Convert to response format
|
||||
session_responses = []
|
||||
|
||||
Reference in New Issue
Block a user