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:
2025-11-10 12:14:43 +01:00
parent c589b565f0
commit 424ca166b8
3 changed files with 26 additions and 8 deletions

View File

@@ -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 = []